Documentation ¶
Index ¶
Constants ¶
View Source
const Cache = true // true = cache enabled / false = cache disabled
View Source
const Chunk = 1
By default this set is 1, increment if your bot take a long time to load data to the cache
this setting define how many process + 1 are spawned to fill the cache
View Source
const DBDiscoverHosts = false // should the database automatically connect new servers when they are added to the cluster
View Source
const DBInitialCap = 10 // how many connection should be created
View Source
const DBMaxOpen = 20 // how many connection is allowed
View Source
const DBMaxRetry = 3 // how many retry sould be attempt when a query fail
View Source
const DBcooldowntable = "cooldown"
View Source
const DBdatabase = "bigopenworld-discordbot" // leave for default (bigopenworld-discordbot)
View Source
const DBenabled = true // change to false if you dont want to store data => changing to false will disable some bot fuction
View Source
const DBguildtable = "guild" // where to store guild
View Source
const DBhost = "" // leave blank for localhost
View Source
const DBmultihosts = false // to use multiple hosts instead of one (disable "DBhost" the setting for one host only)
View Source
const DBpassword = "" // leave blank for none
View Source
const DBuser = "" // leave blank for none
View Source
const DBusertable = "users" // where to store user
View Source
const GuildCacheClean = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const GuildCacheExp = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const GuildMemCompression = true // chose to enable or disable cache compression
View Source
const HCacheClean = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const HCacheExp = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const HCooldownCache = true
View Source
const HCooldownCompression = true // chose to enable or disable cache compression
View Source
const HCooldownDB = true
View Source
const HCooldownMem = 1024 // Value in MB => 1024 = 1 GB of Ram => This set the high Cooldown memory cache (for cooldown like RP cmd cooldown)
View Source
const LCacheClean = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const LCacheExp = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const LCooldownCache = true
View Source
const LCooldownCompression = true // chose to enable or disable cache compression
View Source
const LCooldownDB = true
View Source
const LCooldownMem = 1024 // Value in MB => 1024 = 1 GB of Ram => This set the low Cooldown memory cache (for no-spam cooldown)
View Source
const MaxGuildMem = 1024 // Value in MB => 1024 = 1 GB of Ram
View Source
const MaxMemberMem = 1024 // Value in MB => 1024 = 1 GB of Ram
View Source
const MaxRestart = 5 // how many restart are authorized before killing the process
View Source
const MemberCacheClean = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const MemberCacheExp = 10 * time.Minute // dont modify unless you know what you are doing
View Source
const MemberMemCompression = true // chose to enable or disable cache compression
View Source
const Prefix = ">" // the default prefix of the bot
View Source
const RestartReset = true // If the bot have sucessufly started do we resset restart cont to 0
View Source
const RestartWait = 10 * time.Second // How many time we wait before a new restart attempt
View Source
const Token = "" // enter the bot token
Variables ¶
View Source
var DBhosts = []string{"host1", "host2"} // replace host1 and host2 with the correct value
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.