Optional
BotYour BotWorker class (must extend BaseClusterWorker)
Optional
broadcastWhether to broadcast Admiral events (e.g. when a cluster is ready) Note to avoid using Admiral event names when this is enabled
true
Optional
clientOptions to pass to the Eris client constructor. Intents default to all non-privileged intents.
Optional
clusterHow long between starting clusters
5e3
Optional
clustersNumber of clusters
"auto"
Optional
customExtended eris client class (should extend Eris.Client)
Optional
fetchHow long to wait in ms before giving up on a fetch (includes eval functions and commands)
10e3
Optional
firstFirst shard ID to use on this instance of eris-fleet
Optional
guildsGuilds per shard. "auto" uses the gateway's recommended shard count.
"auto"
Optional
killAmount of time to wait in ms before doing a forced shutdown during shutdowns
10e3
Optional
lastLast shard ID to use on this instance of eris-fleet
Optional
lessOption to have less logging show up
false
Optional
loadWhether to load your cluster class as soon as possible or wait until Eris's ready event. If you use this, your bot file must listen for the Eris ready event before doing anything which requires all shards to be connected. Also note that this will allow or your BotWorker to listen for events already being listened for in the old cluster during a soft restart. Be careful to avoid responding to an event twice.
false
Optional
Beta
maxOverride the max_concurrency
value sent from Discord (useful if using eris-fleet across machines).
Set to 1 to disable concurrency.
Optional
maxMaximum amount of restarts of a worker before giving up. -1 is infinite.
5
Optional
nodeNode arguments to pass to the clusters
Optional
objectWhether to split the source in to an Object
false
ObjectLog See for the object which is given in the logging event if this option is enabled
Optional
overrideWhether to override console.log, console.debug, console.warn, and console.error in clusters and services
true
Optional
pathAbsolute path to the js file
Optional
serviceHow long to wait for a service to start
0
Optional
servicesServices to start by name and path
Optional
shardsNumber of shards
"auto"
Optional
shutdownWhether to shutdown shutdown services and clusters together whenever possible
false
Optional
softAmount of time (milliseconds) to wait before proceeding with a soft kill after the new cluster is ready. Set to 0 to disable (default)
0
Optional
startWhether to start services together or not.
false
Optional
startingCustom starting status
Optional
statsHow often to update the stats after all clusters are spawned (set to "disable" to disable automated stats)
60e3
Bot token
Optional
useWhether to use a central request handler. The central request handler routes Eris requests to the Discord API through a single instance of the Eris RequestHandler. This helps prevent 429 errors from the Discord API by using a single rate limiter pool.
false
Optional
whatAllows for more logging customization (overrides generic lessLogging option)
LoggingOptions See for available options
const options = {
// Your other options
whatToLog: {
// This will only log when the admiral starts, when clusters are ready, and when services are ready.
whitelist: ['admiral_start', 'cluster_ready', 'service_ready']
}
};
Optional
blacklist?: LoggingOptions[]Blacklist of what to log
Optional
whitelist?: LoggingOptions[]Whitelist of what to log
Generated using TypeDoc
Options for the sharding manager