Documentation
¶
Overview ¶
Package bot handles starting up and running the bot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBotNotDefined = errors.New("bot not defined")
ErrBotNotDefined is returned if the bot definition cannot be found in the DB.
Functions ¶
Types ¶
type Instance ¶ added in v0.1.0
type Instance struct {
ID string `json:"id"`
Name string `json:"name"`
Control string `json:"control"`
// contains filtered or unexported fields
}
Instance of the bot.
func New ¶ added in v0.1.0
func New(id string, connection *db.Connection) (*Instance, error)
New bot instance.
func (*Instance) Handler ¶ added in v0.1.0
Handler will listen for a startup message from another bot and shut down if it sees one.
Click to show internal directories.
Click to hide internal directories.