Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-28 00:21:02 +01:00
parent 962c894f79
commit 020c12e67d

View file

@ -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)
}
}
}