19 lines
501 B
Go
19 lines
501 B
Go
package commands
|
|
|
|
import "github.com/bwmarrin/discordgo"
|
|
|
|
var HugCommand = &discordgo.ApplicationCommand{
|
|
Name: "hug",
|
|
Description: "Sends you a big warm hug!",
|
|
}
|
|
|
|
func HandleHug(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
|
response := &discordgo.InteractionResponse{
|
|
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
|
Data: &discordgo.InteractionResponseData{
|
|
Content: "Sending you a big warm hug! 🤗",
|
|
},
|
|
}
|
|
s.InteractionRespond(i.Interaction, response)
|
|
}
|