mirror-nourybot/pkg/commands/number.go
2021-10-17 21:37:45 +02:00

17 lines
366 B
Go

package commands
import (
"github.com/gempir/go-twitch-irc/v2"
"github.com/lyx0/nourybot/pkg/api"
)
func RandomNumber(channel string, client *twitch.Client) {
reply := api.RandomNumber()
client.Say(channel, string(reply))
}
func Number(channel string, number string, client *twitch.Client) {
reply := api.Number(number)
client.Say(channel, string(reply))
}