From 0cd973742dc35199f7442bf67365967814897fe6 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 11 Apr 2017 21:19:44 +0000 Subject: [PATCH] No Need for an env var for that --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 81f37b6d..460b97e3 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ client.on('guildCreate', async(guild) => { } try { const response = await request - .post(`https://bots.discord.pw/api/bots/${process.env.BOT_ID}/stats`) + .post(`https://bots.discord.pw/api/bots/${client.user.id}/stats`) .set({ 'Authorization': process.env.DISCORD_BOTS_KEY }) @@ -83,7 +83,7 @@ client.on('guildDelete', async(guild) => { } try { const response = await request - .post(`https://bots.discord.pw/api/bots/${process.env.BOT_ID}/stats`) + .post(`https://bots.discord.pw/api/bots/${client.user.id}/stats`) .set({ 'Authorization': process.env.DISCORD_BOTS_KEY })