Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot contains information that's necessary for the bot.
func New ¶
func New(config Configuration) (bot *Bot, err error)
New initializes the bot as well as all commands.
type Configuration ¶
type Configuration struct { Token string `required:"true"` Prefix string `default:"!"` Cooldown int `default:"3"` MongoHost string `split_words:"true" default:"127.0.0.1" required:"true"` MongoPort string `split_words:"true" default:"27017" required:"true"` MongoName string `split_words:"true" default:"tacobot" required:"true"` MongoUser string `split_words:"true" required:"false"` MongoPass string `split_words:"true" required:"false"` }
Configuration contains settings loaded in from environment variable (.env) files.
Click to show internal directories.
Click to hide internal directories.