mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Tidy up shards a bit
This commit is contained in:
@@ -17,6 +17,8 @@ client.on('message', msg => {
|
||||
}
|
||||
});
|
||||
|
||||
process.send(123);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('Ready');
|
||||
});
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const Discord = require('../');
|
||||
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, 5);
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`);
|
||||
|
||||
sharder.on('launch', id => console.log(`launched ${id}`));
|
||||
|
||||
sharder.spawn(5);
|
||||
|
||||
Reference in New Issue
Block a user