Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Session *discordgo.Session Cfg *config.Config Repo repository.Repository Svc service.Service Cron *cronjob.Cron }
type CommandHandler ¶
type CommandHandler struct { OnError func(ctx *Context, err error) // contains filtered or unexported fields }
func NewCommandHandler ¶
func NewCommandHandler(prefix string) *CommandHandler
NewCommandHandler creates a new CommandHandler.
func (*CommandHandler) GetCommands ¶
func (c *CommandHandler) GetCommands() []Command
func (*CommandHandler) HandleMessage ¶
func (c *CommandHandler) HandleMessage(s *discordgo.Session, e *discordgo.MessageCreate)
func (*CommandHandler) RegisterCommand ¶
func (c *CommandHandler) RegisterCommand(cmd Command)
func (*CommandHandler) RegisterMiddleware ¶
func (c *CommandHandler) RegisterMiddleware(mw Middleware)
Click to show internal directories.
Click to hide internal directories.