mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Simplify Shard.env
This commit is contained in:
parent
1a3ea65abd
commit
ecee07655f
1 changed files with 5 additions and 4 deletions
|
|
@ -29,10 +29,11 @@ class Shard {
|
|||
* The environment variables for the shard
|
||||
* @type {Object}
|
||||
*/
|
||||
this.env = Object.assign({}, process.env);
|
||||
this.env.SHARD_ID = this.id;
|
||||
this.env.SHARD_COUNT = this.manager.totalShards;
|
||||
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
|
||||
this.env = Object.assign({}, process.env, {
|
||||
SHARD_ID: this.id,
|
||||
SHARD_COUNT: this.manager.totalShards,
|
||||
CLIENT_TOKEN: this.manager.token,
|
||||
});
|
||||
|
||||
/**
|
||||
* Process of the shard
|
||||
|
|
|
|||
Loading…
Reference in a new issue