No Need for an env var for that

This commit is contained in:
Daniel Odendahl Jr
2017-04-11 21:19:44 +00:00
parent f45a723b77
commit 0cd973742d
+2 -2
View File
@@ -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
})