forgot returns

This commit is contained in:
lyx0 2021-10-14 22:50:03 +02:00
parent 89b2d480e7
commit 09b60730ae

View file

@ -67,12 +67,13 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
case "8ball": case "8ball":
commands.EightBall(message, twitchClient) commands.EightBall(message, twitchClient)
return return
case "weather": case "weather":
if msgLen == 1 { if msgLen == 1 {
twitchClient.Say(message.Channel, "Usage: ()weather [location]") twitchClient.Say(message.Channel, "Usage: ()weather [location]")
return
} else { } else {
commands.Weather(message.Channel, message.Message[9:len(message.Message)], twitchClient) commands.Weather(message.Channel, message.Message[9:len(message.Message)], twitchClient)
return
} }
} }