Documentation
¶
Index ¶
- Variables
- type Admin
- type Bot
- func (b *Bot) AddRoute(rs ...*route.Route)
- func (b *Bot) Admins() ([]string, error)
- func (b *Bot) Prefix(guild, cont string) (string, string, error)
- func (b *Bot) Register(dir, name string) error
- func (b *Bot) RegisterAll(dir string) error
- func (b *Bot) Route(s *dg.Session, m *dg.MessageCreate)
- func (b *Bot) Start() error
- func (b *Bot) Token() (*Token, error)
- func (b *Bot) Uptime() time.Duration
- func (b *Bot) WaitReady()
- type Prefix
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var AdminTable = r.DB("config").TableCreate( "admin", r.TableCreateOpts{ PrimaryKey: "userid", }, )
View Source
var ConfigDB = r.DBCreate("config")
View Source
var Log = minori.GetLogger("bot")
View Source
var PrefixFail = errors.New("failed to get a prefix")
View Source
var PrefixTable = r.DB("config").TableCreate( "prefix", r.TableCreateOpts{ PrimaryKey: "guild", }, )
View Source
var TokenFail = errors.New("failed to get a token")
View Source
var TokenTable = r.DB("config").TableCreate("token")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.