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)
|
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package main
|
package mumbledj
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
2
main.go
2
main.go
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
4
web.go
|
@ -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
|
||||||
|
|
Reference in a new issue