mirror-nourybot/pkg/commands/xkcd.go
2021-10-31 15:03:31 +01:00

15 lines
273 B
Go

package commands
import (
"github.com/lyx0/nourybot/cmd/bot"
"github.com/lyx0/nourybot/pkg/api"
)
// Xkcd responds with a link to the current xkcd comic and information about i.
func Xkcd(channel string, nb *bot.Bot) {
reply := api.Xkcd()
nb.Send(channel, reply)
}