Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { ID string Session *discordgo.Session GPTClient gpt.GPTClient // Use the GPTClient interface Commands map[string]commands.Command }
Bot represents the state of the Discord bot.
func (*Bot) LoadCommands ¶
func (b *Bot) LoadCommands()
LoadCommands initializes and maps the commands for the bot.
func (*Bot) OnMessageReceived ¶
func (b *Bot) OnMessageReceived(s *discordgo.Session, m *discordgo.MessageCreate)
OnMessageReceived is called when a message is received.
Click to show internal directories.
Click to hide internal directories.