Documentation
¶
Overview ¶
Package command is an interface for defining bot commands
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Commmands keyed by golang/regexp patterns // regexp.Match(key, input) is used to match Commands = map[string]Command{} )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
// Executes the command with args passed in
Exec(args ...string) ([]byte, error)
// Usage of the command
Usage() string
// Description of the command
Description() string
// Name of the command
String() string
}
Command is the interface for specific named commands executed via plugins or the bot.
Click to show internal directories.
Click to hide internal directories.