Documentation
¶
Index ¶
- Variables
- func GetBot() *discordgo.Session
- func GetBotID() string
- func MessageHandler(s *discordgo.Session, m *discordgo.MessageCreate)
- func NormalizeMessage(message string) string
- func ParseCommand(message string) (string, string)
- func Start()
- func ValidateMessage(m *discordgo.MessageCreate) (bool, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var BotID string
Functions ¶
func MessageHandler ¶
func MessageHandler(s *discordgo.Session, m *discordgo.MessageCreate)
func NormalizeMessage ¶
func ParseCommand ¶
return the eparsed command and remove that command from the message Return tha matched command and the striped message
func ValidateMessage ¶
func ValidateMessage(m *discordgo.MessageCreate) (bool, string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.