Documentation ¶
Index ¶
- type Bot
- func (b *Bot) GetAllChannels() (channels []*discordgo.Channel)
- func (b *Bot) GetAllEmojis() (emojis []*discordgo.Emoji)
- func (b *Bot) GetAllUsers() []*discordgo.User
- func (bot *Bot) GetLatsUserMessageTimestamp(channelID, userID string) time.Time
- func (bot *Bot) InitPrefixes(defaultPrefix string)
- func (bot *Bot) RegisterMessageTimestamp(m *discordgo.Message)
- func (bot *Bot) Stop(exitCode int, forceStop bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Logger *logger.Logger Config *config.Config Session *discordgo.Session DefaultPrefixes []string GuildPrefixes map[string]string // id:prefix MessageTimestamps map[string]map[string]discordgo.Timestamp // channelID: userID: timestmp }
Main bot struct
func (*Bot) GetAllChannels ¶
Returns all cached channels
func (*Bot) GetAllEmojis ¶
Returns all cached emojis
func (*Bot) GetLatsUserMessageTimestamp ¶
Gets timestamp of last user's message TODO: fix data race?
func (*Bot) InitPrefixes ¶
func (*Bot) RegisterMessageTimestamp ¶
Registers timestamp of last user's message TODO: fix data race?
Click to show internal directories.
Click to hide internal directories.