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