add alias for numbers command

This commit is contained in:
lyx0 2021-10-17 21:38:10 +02:00
parent cdc57f55c4
commit 69ac5c52ed

View file

@ -136,6 +136,12 @@ func HandleCommand(message twitch.PrivateMessage, twitchClient *twitch.Client, u
commands.Godocs(message.Channel, message.Message[9:len(message.Message)], twitchClient)
return
}
case "num":
if msgLen == 1 {
commands.RandomNumber(message.Channel, twitchClient)
} else {
commands.Number(message.Channel, cmdParams[1], twitchClient)
}
case "number":
if msgLen == 1 {
commands.RandomNumber(message.Channel, twitchClient)