Documentation ¶
Index ¶
- func ArchiveChannel(ctx *Context) (err error)
- func ExecuteModule(name string, ctx *Context, AmountArgs int, handler Handler) (err error)
- func SearchRepository(ctx *Context) (err error)
- type CmdBan
- type CmdGithub
- type CmdKick
- type CmdLogCopy
- type CmdPing
- type CmdPurge
- type CmdReport
- type CmdRules
- type Command
- type CommandHandler
- type Context
- type Handler
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveChannel ¶
func ExecuteModule ¶
func SearchRepository ¶
Types ¶
type CmdBan ¶
type CmdBan struct{}
ban command
func (*CmdBan) AdminRequired ¶
func (*CmdBan) DMsAllowed ¶
func (*CmdBan) Description ¶
type CmdGithub ¶
type CmdGithub struct{}
func (*CmdGithub) AdminRequired ¶
func (*CmdGithub) DMsAllowed ¶
func (*CmdGithub) Description ¶
type CmdKick ¶
type CmdKick struct{}
func (*CmdKick) AdminRequired ¶
func (*CmdKick) DMsAllowed ¶
func (*CmdKick) Description ¶
type CmdLogCopy ¶
type CmdLogCopy struct{}
ban command
func (*CmdLogCopy) AdminRequired ¶
func (c *CmdLogCopy) AdminRequired() bool
func (*CmdLogCopy) DMsAllowed ¶
func (c *CmdLogCopy) DMsAllowed() bool
func (*CmdLogCopy) Description ¶
func (c *CmdLogCopy) Description() string
func (*CmdLogCopy) Exec ¶
func (c *CmdLogCopy) Exec(ctx *Context) (err error)
func (*CmdLogCopy) Invokes ¶
func (c *CmdLogCopy) Invokes() []string
type CmdPing ¶
type CmdPing struct{}
func (*CmdPing) AdminRequired ¶
func (*CmdPing) DMsAllowed ¶
func (*CmdPing) Description ¶
type CmdPurge ¶
type CmdPurge struct{}
func (*CmdPurge) AdminRequired ¶
func (*CmdPurge) DMsAllowed ¶
func (*CmdPurge) Description ¶
type CmdReport ¶
type CmdReport struct{}
func (*CmdReport) AdminRequired ¶
func (*CmdReport) DMsAllowed ¶
func (*CmdReport) Description ¶
type CmdRules ¶
type CmdRules struct{}
func (*CmdRules) AdminRequired ¶
func (*CmdRules) DMsAllowed ¶
func (*CmdRules) Description ¶
type CommandHandler ¶
type CommandHandler struct { OnError func(err error, ctx *Context) // contains filtered or unexported fields }
func NewCommandHandler ¶
func NewCommandHandler(prefix string, db *gorm.DB) *CommandHandler
creates new instance of the commandhandler
func (*CommandHandler) HandleMessage ¶
func (c *CommandHandler) HandleMessage(s *discordgo.Session, e *discordgo.MessageCreate)
message handler
func (*CommandHandler) RegisterCommand ¶
func (c *CommandHandler) RegisterCommand(cmd Command)
easy way to add commands
func (*CommandHandler) RegisterMiddleware ¶
func (c *CommandHandler) RegisterMiddleware(mw Middleware)
easy way to add middleware
Click to show internal directories.
Click to hide internal directories.