Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-30 17:07:59 +01:00
parent fcee078c0b
commit 619d9100c3
9 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"errors" "errors"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"errors" "errors"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"crypto/tls" "crypto/tls"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"errors" "errors"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"errors" "errors"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"encoding/json" "encoding/json"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/ */
package main package mumbledj
import ( import (
"errors" "errors"

View file

@ -5,7 +5,7 @@
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License) * 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. // 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." const INVALID_API_KEY = "MumbleDJ does not have a valid YouTube API key."

4
web.go
View file

@ -1,4 +1,4 @@
package main package mumbledj
import ( import (
"fmt" "fmt"
@ -49,7 +49,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
if uname == nil { if uname == nil {
fmt.Fprintf(w, "Invalid Token") fmt.Fprintf(w, "Invalid Token")
} else { } else {
t, err := template.ParseFiles("~/.mumbledj/web/index.html") t, err := template.ParseFiles("mumbledj/index.html")
if err != nil { if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)
return return