Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadInput = errors.New("Empty text") ErrNoSuchCommand = errors.New("no such command") )
errors
View Source
var (
ErrNoContent = errors.New("no content field in json")
)
errors
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command used by bot to answer user. Bot can response to commands of type "/help", or maybe "/calc 2+2".
func ParseCommand ¶
ParseCommand gots input of type "/help smth" and returns a command
type CommandFunc ¶
CommandFunc is adapter for Command
Click to show internal directories.
Click to hide internal directories.