Fixed error message for videos exceeding time limit not showing
This commit is contained in:
parent
fce0f0e378
commit
12b7cb3a77
|
@ -201,7 +201,7 @@ func add(user *gumble.User, username, url string) {
|
|||
dj.queue.OnSongFinished()
|
||||
}
|
||||
}
|
||||
} else if fmt.Sprint(err) == "video exceeds the maximum allowed duration." {
|
||||
} 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)
|
||||
|
|
Reference in a new issue