mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add missing returns
This commit is contained in:
parent
8b4b61b362
commit
b77146fad5
1 changed files with 9 additions and 0 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue