Test for sharding POST fix

This commit is contained in:
dragonfire535
2017-03-09 01:20:43 -05:00
parent 371c095f77
commit 126703780b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -95,6 +95,7 @@ client.on('guildMemberRemove', member => {
client.on('guildCreate', guild => {
console.log("[Guild] I have joined the guild: " + guild.name + " (" + guild.id + ")...");
if(client.shard.id !== 0) return;
client.shard.fetchClientValues('guilds.size').then(results => {
console.log("[POST] " + results);
const carbonPOST = {
@@ -131,6 +132,7 @@ client.on('guildCreate', guild => {
});
client.on('guildDelete', guild => {
if(client.shard.id !== 0) return;
console.log("[Guild] I have left the guild: " + guild.name + " (" + guild.id + ")...");
client.shard.fetchClientValues('guilds.size').then(results => {
console.log("[POST] " + results);
+1 -1
View File
@@ -1,3 +1,3 @@
const Discord = require('discord.js');
const Manager = new Discord.ShardingManager('./index.js');
Manager.spawn(1);
Manager.spawn(2);