switch to node-fetch

This commit is contained in:
Will Nelson
2018-06-08 20:01:22 -07:00
parent fc96cfbc00
commit 2239b05e13
7 changed files with 67 additions and 52 deletions

View File

@@ -1,7 +1,8 @@
const Discord = require('../');
const { token } = require('./auth');
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, 4, false);
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
sharder.on('launch', shard => console.log(`launched ${shard.id}`));
sharder.spawn(4);
sharder.spawn();