From 020c12e67d295905cc8a23ef8e25fa6b42fe16cd Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Tue, 28 Jul 2015 00:21:02 +0100 Subject: [PATCH] Fixing build issues --- commands.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/commands.go b/commands.go index b144f6e..b02b819 100644 --- a/commands.go +++ b/commands.go @@ -11,7 +11,6 @@ import ( "errors" "fmt" "os" - "regexp" "strconv" "strings" @@ -186,12 +185,6 @@ func add(user *gumble.User, username, url string) { dj.queue.CurrentSong().Delete() dj.queue.OnSongFinished() } - } else if fmt.Sprint(err) == "Song exceeds the maximum allowed duration." { - dj.SendPrivateMessage(user, VIDEO_TOO_LONG_MSG) - } else if fmt.Sprint(err) == "Invalid API key supplied." { - dj.SendPrivateMessage(user, INVALID_API_KEY) - } else { - dj.SendPrivateMessage(user, INVALID_YOUTUBE_ID_MSG) } } }