Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandSettings ¶
type CommandSettings struct { Cooldown time.Duration `bson:"cooldown,omitempty"` Roles []string `bson:"roles,omitempty"` Misc map[string]interface{} `bson:"misc,omitempty"` Command string `bson:"command"` // internal for DB only }
CommandSettings represents command configuration
type Config ¶
type Config struct { Version string MongoHost string `split_words:"true" required:"false"` MongoPort string `split_words:"true" required:"false"` MongoName string `split_words:"true" required:"false"` MongoUser string `split_words:"true" required:"false"` MongoPass string `split_words:"true" required:"false"` DiscordToken string `split_words:"true" required:"true"` // discord API token ReadmeChannel string `split_words:"true" required:"true"` // the default readme channel if not set in DB AdsChannel string `split_words:"true" required:"false" default:"763069609712025641"` // the default server ads channel if not set in DB DefaultChannel string `split_words:"true" required:"true"` // the default command channel if not set in DB DefaultRole string `split_words:"true" required:"true"` // the default command role if not set in DB DefaultCooldown time.Duration `split_words:"true" required:"true"` // the default command cooldown if not set in DB Heartbeat int `split_words:"true" required:"true"` // Heartbeat time in minutes, a heartbeat is when the bot chimes in to the server, sometimes with a random message BotID string `split_words:"true" required:"true"` // the bot's client ID GuildID string `split_words:"true" required:"true"` // the discord channel ID DebugUser string `split_words:"true" required:"false"` // when set, only accept commands from this user NoInitSync bool `split_words:"true" required:"false"` // if set, does not run database role sync on init NoDatabase bool `split_words:"true" required:"false"` // if set, does not connect to database ReadmeGistID string `split_words:"true" required:"true" default:"37f3548342e51365a7291132502b71b8"` // the gist id for the readme ReadmeGistFileName github.GistFilename `split_words:"true" required:"true" default:"samp-discord-rules.md"` // the file name which contains the readme in the gist AdministrativeChannel string `split_words:"true" required:"false"` // DEPRECATED PrimaryChannel string `split_words:"true" required:"false"` // DEPRECATED Admin string `split_words:"true" required:"false"` // DEPRECATED }
Config stores configuration variables
Click to show internal directories.
Click to hide internal directories.