Documentation ¶
Index ¶
- func Run(l zerolog.Logger, b *Bot, c *cmd.Conf)
- type Bot
- func (b *Bot) AddCommand(c commands.Command)
- func (b *Bot) DisplayCommandHelp(s *discordgo.Session, m *discordgo.MessageCreate, cmd string)
- func (b *Bot) DisplayGlobalHelp(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) GetInvitingUser(s *discordgo.Session, g *discordgo.GuildCreate) string
- func (b *Bot) GuildCreatedHandler(s *discordgo.Session, g *discordgo.GuildCreate)
- func (b *Bot) InitialCheck(s *discordgo.Session, m *discordgo.MessageCreate) bool
- func (b *Bot) MessageCreatedHandler(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *Bot) MessageInviter(s *discordgo.Session, g *discordgo.GuildCreate)
- type CommandMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) AddCommand ¶
func (*Bot) DisplayCommandHelp ¶
DisplayCommandHelp will display the help section for a given command
func (*Bot) DisplayGlobalHelp ¶
func (b *Bot) DisplayGlobalHelp(s *discordgo.Session, m *discordgo.MessageCreate)
DisplayGlobalHelp will cycle through the available command and display a global help
func (*Bot) GetInvitingUser ¶
func (*Bot) GuildCreatedHandler ¶
func (b *Bot) GuildCreatedHandler(s *discordgo.Session, g *discordgo.GuildCreate)
func (*Bot) InitialCheck ¶
InitialCheck will perform basic checks, unrelated to commands It will check if the prefix is present in the message, whether or not the sender is a bot, or if the sender is itself If this method returns true then it is safe to proceed
func (*Bot) MessageCreatedHandler ¶
func (b *Bot) MessageCreatedHandler(s *discordgo.Session, m *discordgo.MessageCreate)
func (*Bot) MessageInviter ¶
func (b *Bot) MessageInviter(s *discordgo.Session, g *discordgo.GuildCreate)
Click to show internal directories.
Click to hide internal directories.