23 lines
530 B
Go
23 lines
530 B
Go
package main
|
|
|
|
/*
|
|
import (
|
|
"github.com/bwmarrin/discordgo"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
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) {
|
|
err := respond(i.Interaction, simpleGetFromAPI("joke", "https://icanhazdadjoke.com/").(string), false)
|
|
if err != nil {
|
|
logrus.Error(err)
|
|
}
|
|
},
|
|
AllowDM: true,
|
|
}
|
|
*/
|