NukaNewsBot/commands/com_map.go

13 lines
325 B
Go
Raw Permalink Normal View History

2024-04-28 02:30:53 +00:00
package commands
import (
"github.com/bwmarrin/discordgo"
)
// CommandMap maps command strings to their corresponding handler functions
var commandMap = map[string]func(*discordgo.Session, *discordgo.MessageCreate){
2024-04-28 02:56:42 +00:00
"!hello": hello,
"!test": test,
2024-04-28 02:30:53 +00:00
// Add more commands and their corresponding handler functions here
}