diff --git a/cache.go b/cache.go index 0adda0e..9f56af3 100644 --- a/cache.go +++ b/cache.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "errors" diff --git a/commands.go b/commands.go index 4be4eeb..5f0e02c 100644 --- a/commands.go +++ b/commands.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "errors" diff --git a/main.go b/main.go index ba85c0c..840aba9 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "crypto/tls" diff --git a/parseconfig.go b/parseconfig.go index 4b4a16a..f567c4c 100644 --- a/parseconfig.go +++ b/parseconfig.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "errors" diff --git a/service.go b/service.go index 13a1d08..39f7b0c 100644 --- a/service.go +++ b/service.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "errors" diff --git a/service_youtube.go b/service_youtube.go index 63a343d..aa7ec1f 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "encoding/json" diff --git a/songqueue.go b/songqueue.go index f1bdc1c..0a6bb31 100644 --- a/songqueue.go +++ b/songqueue.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj import ( "errors" diff --git a/strings.go b/strings.go index 9d5524f..03a7e3c 100644 --- a/strings.go +++ b/strings.go @@ -5,7 +5,7 @@ * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) */ -package main +package mumbledj // Message shown to users when the bot has an invalid YouTube API key. const INVALID_API_KEY = "MumbleDJ does not have a valid YouTube API key." diff --git a/web.go b/web.go index 8dd02f2..bdbf3bd 100644 --- a/web.go +++ b/web.go @@ -1,4 +1,4 @@ -package main +package mumbledj import ( "fmt" @@ -49,7 +49,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) { if uname == nil { fmt.Fprintf(w, "Invalid Token") } else { - t, err := template.ParseFiles("~/.mumbledj/web/index.html") + t, err := template.ParseFiles("mumbledj/index.html") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return