diff --git a/Makefile b/Makefile index 5de2412..36b484b 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ clean: install: mkdir -p ~/.mumbledj/config mkdir -p ~/.mumbledj/songs + mkdir -p ~/.mumbledj/web if [ -a ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi; cp -u config.gcfg ~/.mumbledj/config/mumbledj.gcfg if [ -d ~/bin ]; then cp -f mumbledj* ~/bin/mumbledj; else sudo cp -f mumbledj* /usr/local/bin/mumbledj; fi; diff --git a/commands.go b/commands.go index 99db8fd..59d66ea 100644 --- a/commands.go +++ b/commands.go @@ -166,9 +166,10 @@ func parseCommand(user *gumble.User, username, command string) { // add performs !add functionality. Checks input URL for service, and adds // the URL to the queue if the format matches. -func add(user *gumble.User, url string) { +func add(user *gumble.User, url string) error { if url == "" { dj.SendPrivateMessage(user, NO_ARGUMENT_MSG) + return errors.New("NO_ARGUMENT") } else { title, err := findServiceAndAdd(user, url) if err == nil { @@ -176,6 +177,7 @@ func add(user *gumble.User, url string) { } else { dj.SendPrivateMessage(user, err.Error()) } + return err } } diff --git a/index.html b/index.html new file mode 100644 index 0000000..e4c1635 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + +
+ +