Files
acecore/cmd_dadjoke.go
2024-03-08 19:10:25 +01:00

16 lines
428 B
Go

package main
import (
"github.com/bwmarrin/discordgo"
)
var cmd_dadjoke Command = Command{
Definition: discordgo.ApplicationCommand{
Name: "dadjoke",
Description: "Gives you a random joke that is as bad as your dad would tell them",
},
Interact: func(s *discordgo.Session, i *discordgo.InteractionCreate) {
respond(i.Interaction, simpleGetFromAPI("joke", "https://icanhazdadjoke.com/").(string), false)
},
}