Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Logger *logger.Logger Mux *mux.Mux Session *discordgo.Session WeeklyInfo *tasks.WeeklyInfo Database string }
Bot represents everything that has to do with the bot. Has different modules, the session, and soon the DB
func (*Bot) AwaitTermination ¶
func (b *Bot) AwaitTermination()
AwaitTermination awaits termination and then closes the bot and session cleanly.
Click to show internal directories.
Click to hide internal directories.