Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Fn HandlerFunc
Description string
}
type HandlerFunc ¶
type HandlerFunc func(C)
type HelpCommand ¶
type HelpCommands ¶
type HelpCommands struct {
Header template.HTML
Commands []HelpCommand
}
func (HelpCommands) Len ¶
func (hc HelpCommands) Len() int
func (HelpCommands) Less ¶
func (hc HelpCommands) Less(i, j int) bool
func (HelpCommands) Swap ¶
func (hc HelpCommands) Swap(i, j int)
type Parser ¶
type Parser struct {
Prefix rune
MaxLen int64
MaxSpamPerMinute int64
AntiSpam *sync.Map
// contains filtered or unexported fields
}
func (*Parser) Help ¶
func (p *Parser) Help() HelpCommands
func (*Parser) On ¶
func (p *Parser) On(cmd, description string, cb HandlerFunc)
func (*Parser) Rgx ¶
func (p *Parser) Rgx(cmd, description string, cb HandlerFunc)
Click to show internal directories.
Click to hide internal directories.