Versions in this module Expand all Collapse all v0 v0.1.0 Mar 15, 2016 Changes in this version + var ErrInvalidCommand = errors.New("invalid command") + var ErrMissingPlugin = errors.New("missing plugin") + func BootDependencies(avaRPCAddr string) error + func BootRPCServer() (addr string, err error) + func BuildOffensiveMap() (map[string]struct{}, error) + func CallPlugin(pw *plugin.Wrapper, m *dt.Msg, followup bool) (pluginReply string, err error) + func CompileAssets() error + func DB() *sqlx.DB + func GetPlugin(db *sqlx.DB, m *dt.Msg) (*plugin.Wrapper, string, bool, error) + func JSONError(err error) error + func NewMsg(u *dt.User, cmd string) *dt.Msg + func NewServer() (*echo.Echo, error) + func Offensive() map[string]struct + func Preprocess(c *echo.Context) (*dt.Msg, error) + func ProcessText(c *echo.Context) (ret string, uid uint64, err error) + func RespondWithNicety(in *dt.Msg) (responseNecessary bool, response string) + func RespondWithOffense(off map[string]struct{}, in *dt.Msg) string + type Abot int + func (t *Abot) RegisterPlugin(p *plugin.Plugin, reply *string) error + type Classifier map[string]struct + func BuildClassifier() (Classifier, error) + func NER() Classifier + func (c Classifier) ClassifyTokens(tokens []string) *nlp.StructuredInput