Back to private :)

This commit is contained in:
Dragon Fire
2018-07-17 21:53:48 -04:00
parent 536e191e64
commit 11a8e26ddb
9 changed files with 14 additions and 355 deletions
-20
View File
@@ -1,20 +0,0 @@
const request = require('node-superfetch');
const { DISCORD_BOTS_TOKEN } = process.env;
class BotListUtil {
static async discordBots(client) {
try {
const { body } = await request
.post(`https://bots.discord.pw/api/bots/${client.user.id}/stats`)
.set({ Authorization: DISCORD_BOTS_TOKEN })
.send({ server_count: client.guilds.size });
console.log('[DISCORD BOTS] Posted to Discord Bots.');
return body;
} catch (err) {
console.error('[DISCORD BOTS] Failed to post to Discord Bots.', err);
return err;
}
}
}
module.exports = BotListUtil;