add missing returns

This commit is contained in:
lyx0 2021-10-31 14:25:47 +01:00
parent 8b4b61b362
commit b77146fad5

View file

@ -125,9 +125,11 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "emote": case "emote":
commands.EmoteLookup(target, cmdParams[1], nb) commands.EmoteLookup(target, cmdParams[1], nb)
return
case "emotelookup": case "emotelookup":
commands.EmoteLookup(target, cmdParams[1], nb) commands.EmoteLookup(target, cmdParams[1], nb)
return
case "ffz": case "ffz":
if msgLen == 1 { if msgLen == 1 {
@ -135,6 +137,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return return
} }
commands.Ffz(target, cmdParams[1], nb) commands.Ffz(target, cmdParams[1], nb)
return
// case "ffzemotes": // case "ffzemotes":
// commands.FfzEmotes(target, nb) // commands.FfzEmotes(target, nb)
@ -214,6 +217,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "help": case "help":
commands.Help(target, nb) commands.Help(target, nb)
return
case "join": case "join":
if msgLen == 1 || message.User.ID != "31437432" { if msgLen == 1 || message.User.ID != "31437432" {
@ -229,19 +233,24 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "nourybot": case "nourybot":
commands.Help(target, nb) commands.Help(target, nb)
return
case "num": case "num":
if msgLen == 1 { if msgLen == 1 {
commands.RandomNumber(target, nb) commands.RandomNumber(target, nb)
return
} else { } else {
commands.Number(target, cmdParams[1], nb) commands.Number(target, cmdParams[1], nb)
return
} }
case "number": case "number":
if msgLen == 1 { if msgLen == 1 {
commands.RandomNumber(target, nb) commands.RandomNumber(target, nb)
return
} else { } else {
commands.Number(target, cmdParams[1], nb) commands.Number(target, cmdParams[1], nb)
return
} }
case "osrs": case "osrs":