added actions and animal gif routes

This commit is contained in:
2025-03-24 16:34:59 -04:00
parent edf72fe289
commit b1b0af1613
5 changed files with 332 additions and 9 deletions
+10 -8
View File
@@ -15,13 +15,15 @@ var BotToken string
// commandHandlers maps command names to their interaction handler functions.
var commandHandlers = map[string]func(*discordgo.Session, *discordgo.InteractionCreate){
"meow": commands.HandleMeow,
"purr": commands.HandlePurr,
"boop": commands.HandleBoop,
"hug": commands.HandleHug,
"cuddle": commands.HandleCuddle,
"snuggle": commands.HandleSnuggle,
"catfact": commands.HandleCatfact,
"meow": commands.HandleMeow,
"purr": commands.HandlePurr,
"boop": commands.HandleBoop,
"hug": commands.HandleHug,
"cuddle": commands.HandleCuddle,
"snuggle": commands.HandleSnuggle,
"catfact": commands.HandleCatfact,
"animalgif": commands.HandleAnimalGif,
"action": commands.HandleAction,
}
// Run starts the Discord bot session and listens for both message and slash command events.
@@ -59,7 +61,7 @@ func newMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
if m.Author.ID == s.State.User.ID {
return
}
// additional message handling logic can go here.
}
func handleInteractionCreate(s *discordgo.Session, i *discordgo.InteractionCreate) {