mirror-nourybot/pkg/commands/xkcd.go

15 lines
273 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"
)
2021-10-31 14:57:21 +01:00
// Xkcd responds with a link to the current xkcd comic and information about i.
2021-10-19 22:58:09 +02:00
func Xkcd(channel string, nb *bot.Bot) {
reply := api.Xkcd()
nb.Send(channel, reply)
}