Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandMap map[string]BotCommand
View Source
var FunctionMap map[string]CommandHandler
Functions ¶
func AddHandler ¶
func AddHandler(name string, fn CommandHandler)
func CreateSession ¶
Types ¶
type BotCommand ¶
type BotCredentials ¶
type BotCredentials struct {
Token string `json:"discord_token"`
}
type CommandHandler ¶
type CommandHandler func([]string)
type Commands ¶
type Commands struct {
Commands []BotCommand `json:"commands"`
}
Click to show internal directories.
Click to hide internal directories.