Added option to .env to specify number of shards
This commit is contained in:
parent
ead0ab8546
commit
7c7dc779c8
2 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,8 @@ TOKEN=
|
||||||
MONGO=mongodb://localhost:27017/esmBot
|
MONGO=mongodb://localhost:27017/esmBot
|
||||||
# Put snowflake ID of bot owner here
|
# Put snowflake ID of bot owner here
|
||||||
OWNER=
|
OWNER=
|
||||||
|
# Put amount of needed shards here
|
||||||
|
SHARDS=1
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# Optional
|
# Optional
|
||||||
|
|
|
@ -16,7 +16,7 @@ const client = new Client(process.env.TOKEN, {
|
||||||
TYPING_START: true,
|
TYPING_START: true,
|
||||||
USER_UPDATE: true
|
USER_UPDATE: true
|
||||||
},
|
},
|
||||||
maxShards: "auto",
|
maxShards: process.env.SHARDS,
|
||||||
opusOnly: true
|
opusOnly: true
|
||||||
});
|
});
|
||||||
module.exports = client;
|
module.exports = client;
|
||||||
|
|
Loading…
Reference in a new issue