13 lines
325 B
Go
13 lines
325 B
Go
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){
|
|
"!hello": hello,
|
|
"!test": test,
|
|
// Add more commands and their corresponding handler functions here
|
|
}
|