Fixing build issues
This commit is contained in:
parent
fcee078c0b
commit
619d9100c3
2
cache.go
2
cache.go
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
2
main.go
2
main.go
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||
*/
|
||||
|
||||
package main
|
||||
package mumbledj
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -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."
|
||||
|
|
4
web.go
4
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
|
||||
|
|
Reference in a new issue