mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add a couple returns
This commit is contained in:
parent
3228176caf
commit
f6e7a6a065
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,7 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
|
||||||
case "uptime":
|
case "uptime":
|
||||||
if msgLen == 1 {
|
if msgLen == 1 {
|
||||||
commands.Uptime(message.Channel, message.Channel, twitchClient)
|
commands.Uptime(message.Channel, message.Channel, twitchClient)
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
commands.Uptime(message.Channel, cmdParams[1], twitchClient)
|
commands.Uptime(message.Channel, cmdParams[1], twitchClient)
|
||||||
return
|
return
|
||||||
|
@ -85,14 +86,18 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
|
||||||
case "godoc":
|
case "godoc":
|
||||||
if msgLen == 1 {
|
if msgLen == 1 {
|
||||||
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
commands.Godocs(message.Channel, message.Message[8:len(message.Message)], twitchClient)
|
commands.Godocs(message.Channel, message.Message[8:len(message.Message)], twitchClient)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
case "godocs":
|
case "godocs":
|
||||||
if msgLen == 1 {
|
if msgLen == 1 {
|
||||||
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
commands.Godocs(message.Channel, message.Message[9:len(message.Message)], twitchClient)
|
commands.Godocs(message.Channel, message.Message[9:len(message.Message)], twitchClient)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue