Documentation
¶
Overview ¶
Package botcmd parses commands and provides alias-aware command middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command contains a normalized command name and arguments.
func ParseEvent ¶
ParseEvent parses command information from an engine event.
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container registers command handlers and exposes them as middleware.
func NewContainer ¶
func NewContainer() *Container
func (*Container) Middleware ¶
func (c *Container) Middleware() middleware.Middleware
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry resolves command aliases.
func NewRegistry ¶
func NewRegistry() *Registry