Documentation ¶
Overview ¶
Package command is an interface for defining bot commands
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]Command{}
Commands keyed by golang/regexp patterns regexp.Match(key, input) is used to match
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { // Exec the command with args passed in Exec(args ...string) ([]byte, error) // Usage of the command Usage() string // Description of the command Description() string // 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.