Documentation ¶
Index ¶
- Variables
- type Bot
- func (bot *Bot) AddHandler(handler interface{}) func()
- func (bot *Bot) Close()
- func (bot *Bot) GetDiscordSession() *discordgo.Session
- func (bot *Bot) NewMessage(session *discordgo.Session, message *discordgo.MessageCreate)
- func (bot *Bot) OnGeneric(s *discordgo.Session, event interface{})
- func (bot *Bot) OnReady(session *discordgo.Session, ready *discordgo.Ready)
- func (bot *Bot) Open() error
Constants ¶
This section is empty.
Variables ¶
View Source
var PingHandlers = map[string]func(*discordgo.Session, *discordgo.MessageCreate){ "!compliment": handlers.HandleMessage, "!insult": handlers.HandleMessage, "!lookup": handlers.HandleWalletName, "!derod": handlers.HandleGetInfoDerod, "!help": handlers.HandleHelp, "!tip": handlers.HandleTip, "!unregister": handlers.HandleUnregister, "!shop": handlers.HandleShop, }
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
DiscordSession *discordgo.Session // Exported field for accessing the session session
}
func (*Bot) AddHandler ¶
func (bot *Bot) AddHandler(handler interface{}) func()
func (*Bot) GetDiscordSession ¶
func (*Bot) NewMessage ¶
func (bot *Bot) NewMessage(session *discordgo.Session, message *discordgo.MessageCreate)
Click to show internal directories.
Click to hide internal directories.