added actions and animal gif routes
This commit is contained in:
+10
-8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user