From 30b2e2aea4c17973e33eca64b2c52d8deaab5237 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 21 Mar 2017 20:14:50 +0000 Subject: [PATCH] Fix the Discord Bots POST --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 95827908..2804df76 100644 --- a/index.js +++ b/index.js @@ -87,13 +87,12 @@ client.on('guildCreate', guild => { console.log("[Carbon] Failed to post to Carbon."); }); request - .post('https://bots.discord.pw/api/bots/' + config.botid + '/stats') + .post('https://bots.discord.pw/api/bots/' + config.botID + '/stats') .set({ 'Authorization': config.botskey }) .send({ server_count: results.reduce((prev, val) => prev + val, 0) }) .then(function (parsedBody) { console.log('[Discord Bots] Successfully posted to Discord Bots.'); }).catch(function (err) { - console.log(err); console.log("[Discord Bots] Failed to post to Discord Bots."); }); }); @@ -113,13 +112,12 @@ client.on('guildDelete', guild => { console.log("[Carbon] Failed to post to Carbon."); }); request - .post('https://bots.discord.pw/api/bots/' + config.botid + '/stats') + .post('https://bots.discord.pw/api/bots/' + config.botID + '/stats') .set({ 'Authorization': config.botskey }) .send({ server_count: results.reduce((prev, val) => prev + val, 0) }) .then(function (parsedBody) { console.log('[Discord Bots] Successfully posted to Discord Bots.'); }).catch(function (err) { - console.log(err); console.log("[Discord Bots] Failed to post to Discord Bots."); }); });