Versions in this module Expand all Collapse all v0 v0.2.0 Dec 2, 2020 Changes in this version + type Bot interface + Every func(Handler) + On func(string, Handler) + Post func([]string, string, ...interface{}) + func Slack(token string) (Bot, error) + func Terminal() (Bot, error) + type Context string + type Dispatcher struct + func (d *Dispatcher) Every(fn Handler) + func (d *Dispatcher) On(regex string, fn Handler) + func (d Dispatcher) Dispatch(msg Message) + type Handle string + type Handler func(Message, ...string) Then + type Message struct + Addressed bool + From Handle + In Context + Received time.Time + Text string + To Handle + func (m Message) Reply(msg string, args ...interface{}) + type SlackBot struct + func (b *SlackBot) Every(fn Handler) + func (b *SlackBot) On(in string, fn Handler) + func (b *SlackBot) Post(to []string, msg string, args ...interface{}) + type TerminalBot struct + func (b *TerminalBot) Every(fn Handler) + func (b *TerminalBot) On(in string, fn Handler) + func (b *TerminalBot) Post(to []string, msg string, args ...interface{}) + type Then int + const Continue + const Handled