canopeas/discord/inspire.go

23 lines
387 B
Go

package discord
import "go.etztech.xyz/inspiro"
func init() {
commands["inspire"] = command{
validate: func(cmd commandInit) bool {
return true
},
run: func(cmd commandInit) (string, error) {
sendTyping(cmd.session, cmd.message.ChannelID)
img, err := inspiro.Generate()
if err != nil {
return "", err
}
return img, nil
},
help: "Get inspired!",
}
}