From 619d9100c394f235550fc6bfad78a982fc5062a3 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 30 Jul 2015 17:07:59 +0100 Subject: [PATCH] Fixing build issues --- cache.go | 2 +- commands.go | 2 +- main.go | 2 +- parseconfig.go | 2 +- service.go | 2 +- service_youtube.go | 2 +- songqueue.go | 2 +- strings.go | 2 +- web.go | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) 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