mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
* switch to node-fetch * remove useless var declaration * remove method uppercasing * rework concurrency * Revert "rework concurrency" This reverts commit ef6aa2697e07277ae9f561f72558f38f358d2e08. * fix headers
8 lines
263 B
JavaScript
8 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();
|