Versions in this module Expand all Collapse all v0 v0.2.0 Jul 1, 2016 Changes in this version + var AllPlugins = []*dt.Plugin + var ErrInvalidUserPass = errors.New("Invalid username/password combination") + var RegPlugins = PkgMap + func ConfusedLang() string + func ConnectDB() (*sqlx.DB, error) + func LoadConf() error + func LoadEnvVars() error + func RandSeq(n int) string + func RespondWithHelp(in *dt.Msg) string + func RespondWithHelpConfused(in *dt.Msg) string + func StemTokens(tokens []string) []string + func TokenizeSentence(sent string) []string + type Header struct + Email string + ID uint64 + IssuedAt int64 + Scopes []string + type PkgMap struct + func (pm PkgMap) Get(k string) *dt.Plugin + func (pm PkgMap) Set(k string, v *dt.Plugin) + type PluginJSON struct + Dependencies map[string]string + Description string + ImportPath string + Name string + Version float64 + func Conf() *PluginJSON 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