mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 01:01:53 +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
|
||||
* @type {Object}
|
||||
*/
|
||||
this.env = {
|
||||
SHARD_ID: this.id,
|
||||
SHARD_COUNT: this.manager.totalShards,
|
||||
};
|
||||
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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const Discord = require('../');
|
|||
const request = require('superagent');
|
||||
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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue