Documentation ¶
Index ¶
- func CommandToFunc(command string, arguments []string, cmdMap map[string]BotFunc, db *sql.DB) string
- func GenTable(data RawTable) string
- func IsCommand(message string, flag string) bool
- func IsOwnMessage(s *discordgo.Session, m *discordgo.MessageCreate) bool
- func ParseMessage(message string, flag string) (command string, args []string)
- type BotFunc
- type RawTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandToFunc ¶
func CommandToFunc( command string, arguments []string, cmdMap map[string]BotFunc, db *sql.DB, ) string
CommandToFunc passes command and argument parameters through Map parameter, returning the resulting function from the map
func IsOwnMessage ¶
func IsOwnMessage( s *discordgo.Session, m *discordgo.MessageCreate, ) bool
IsOwnMessage verifies that a given message is not from this bot
Types ¶
Click to show internal directories.
Click to hide internal directories.