mirror-nourybot/pkg/commands/number.go

17 lines
366 B
Go
Raw Normal View History

2021-10-17 21:37:45 +02:00
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))
}