mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
fix some shard stuff on linux
This commit is contained in:
@@ -29,10 +29,9 @@ class Shard {
|
|||||||
* The environment variables for the shard
|
* The environment variables for the shard
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
this.env = {
|
this.env = Object.assign({}, process.env);
|
||||||
SHARD_ID: this.id,
|
this.env.SHARD_ID = this.id;
|
||||||
SHARD_COUNT: this.manager.totalShards,
|
this.env.SHARD_COUNT = this.manager.totalShards;
|
||||||
};
|
|
||||||
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
|
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const Discord = require('../');
|
|||||||
const request = require('superagent');
|
const request = require('superagent');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const client = new Discord.Client({ fetchAllMembers: false, apiRequestMethod: 'burst' });
|
const client = new Discord.Client({ fetchAllMembers: false, apiRequestMethod: 'sequential' });
|
||||||
|
|
||||||
const { email, password, token, usertoken, song } = require('./auth.json');
|
const { email, password, token, usertoken, song } = require('./auth.json');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user