Documentation ¶
Index ¶
- func MakeRandom() model.UserInfo
- type Bot
- type Database
- func (c *Database) AddBot(guildID, botID string, wavList []string) error
- func (c *Database) AddUser(userID string, userInfo model.UserInfo) error
- func (c *Database) AddWord(guildID, pre, post string) error
- func (c *Database) BulkAddUser(userList []User) error
- func (c *Database) Connect() error
- func (c *Database) CreateGuild(guildID string) error
- func (c *Database) DeleteBot(guildID, botID string) error
- func (c *Database) DeleteWord(guildID, key string) error
- func (c *Database) GetUser(userID string) (User, error)
- func (c *Database) ListBots(guildID string) (map[string][]string, error)
- func (c *Database) ListGuilds() ([]Guild, error)
- func (c *Database) ListWords(guildID string) (map[string]string, error)
- func (c *Database) Migrate() error
- func (c *Database) NewUser(userID string) (User, error)
- type Guild
- type User
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRandom ¶
Types ¶
type Database ¶
func NewDatabase ¶
func (*Database) BulkAddUser ¶
func (*Database) CreateGuild ¶
func (*Database) DeleteWord ¶
func (*Database) ListGuilds ¶
Click to show internal directories.
Click to hide internal directories.