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":
|
||||
if msgLen == 1 {
|
||||
commands.Uptime(message.Channel, message.Channel, twitchClient)
|
||||
return
|
||||
} else {
|
||||
commands.Uptime(message.Channel, cmdParams[1], twitchClient)
|
||||
return
|
||||
|
@ -85,14 +86,18 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
|
|||
case "godoc":
|
||||
if msgLen == 1 {
|
||||
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
||||
return
|
||||
} else {
|
||||
commands.Godocs(message.Channel, message.Message[8:len(message.Message)], twitchClient)
|
||||
return
|
||||
}
|
||||
case "godocs":
|
||||
if msgLen == 1 {
|
||||
twitchClient.Say(message.Channel, "Usage: ()godoc [term]")
|
||||
return
|
||||
} else {
|
||||
commands.Godocs(message.Channel, message.Message[9:len(message.Message)], twitchClient)
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue