Tidy up shards a bit

This commit is contained in:
Amish Shah
2016-08-30 19:07:05 +01:00
parent c70dfa83fb
commit cde3bcb3bd
4 changed files with 17 additions and 11 deletions

View File

@@ -17,6 +17,8 @@ client.on('message', msg => {
}
});
process.send(123);
client.on('ready', () => {
console.log('Ready');
});

View File

@@ -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);