Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { Execute(s *discordgo.Session, m *discordgo.MessageCreate) error Init(gptClient gpt.GPTClient) Trigger() string }
Command defines the interface for bot commands.
type HelloCommand ¶
type HelloCommand struct { }
func (*HelloCommand) Execute ¶
func (cmd *HelloCommand) Execute(s *discordgo.Session, m *discordgo.MessageCreate) error
Execute runs the command's logic.
func (*HelloCommand) Init ¶
func (cmd *HelloCommand) Init(gptClient gpt.GPTClient)
Init does nothing for HelloCommand but is necessary to satisfy the Command interface.
func (*HelloCommand) Trigger ¶
func (cmd *HelloCommand) Trigger() string
Trigger returns the command trigger string.
type HeyPrefixCommand ¶
func (HeyPrefixCommand) Execute ¶
func (cmd HeyPrefixCommand) Execute(s *discordgo.Session, m *discordgo.MessageCreate) error
func (*HeyPrefixCommand) Init ¶
func (cmd *HeyPrefixCommand) Init(gptClient gpt.GPTClient)
func (HeyPrefixCommand) Trigger ¶
func (cmd HeyPrefixCommand) Trigger() string
type KrobyCommand ¶
func (KrobyCommand) Execute ¶
func (cmd KrobyCommand) Execute(s *discordgo.Session, m *discordgo.MessageCreate) error
func (*KrobyCommand) Init ¶
func (cmd *KrobyCommand) Init(gptClient gpt.GPTClient)
func (KrobyCommand) Trigger ¶
func (cmd KrobyCommand) Trigger() string
Click to show internal directories.
Click to hide internal directories.