mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 20:51:14 +00:00
fix some shard stuff on linux
This commit is contained in:
parent
00fe45f6b3
commit
1a3ea65abd
2 changed files with 4 additions and 5 deletions
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue