mirror-nourybot/pkg/commands/randomxkcd.go

13 lines
204 B
Go
Raw Normal View History

2021-10-19 22:58:09 +02:00
package commands
import (
"github.com/lyx0/nourybot/cmd/bot"
"github.com/lyx0/nourybot/pkg/api"
)
func RandomXkcd(channel string, nb *bot.Bot) {
reply := api.RandomXkcd()
2021-10-20 23:54:34 +02:00
2021-10-19 22:58:09 +02:00
nb.Send(channel, reply)
}