mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
* switch to node-fetch
* remove useless var declaration
* remove method uppercasing
* rework concurrency
* Revert "rework concurrency"
This reverts commit ef6aa2697e.
* fix headers
9 lines
263 B
JavaScript
9 lines
263 B
JavaScript
const Discord = require('../');
|
|
const { token } = require('./auth');
|
|
|
|
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
|
|
|
|
sharder.on('launch', shard => console.log(`launched ${shard.id}`));
|
|
|
|
sharder.spawn();
|