mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add ShardManager
This commit is contained in:
5
test/sharder.js
Normal file
5
test/sharder.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const Discord = require('../');
|
||||
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, 5);
|
||||
|
||||
sharder.on('launch', id => console.log(`launched ${id}`));
|
||||
Reference in New Issue
Block a user