Documentation ¶
Index ¶
- func AddBot(username, password string) (int, error)
- func AddOther(username, status string) (int, error)
- func ConfigDirectory() string
- func CreateDB(loc string) error
- func DBPath() (string, error)
- func DeleteBot(botName string) error
- func DeleteOther(otherName, status string) error
- func DisableBot(botName string) error
- func EnableBot(botName string) error
- func EnsureExists()
- func ListBots() error
- func ListOthers(status string) error
- type Bot
- type Other
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOther ¶
DeleteOther deletes account of others from the database.
func EnsureExists ¶
func EnsureExists()
EnsureExists ensures that DB exists. If not, it setups a new database.
func ListOthers ¶
ListOthers lists all others which have specified status (ally, neutral, enemy)
Types ¶
Click to show internal directories.
Click to hide internal directories.