snekfetch

This commit is contained in:
Daniel Odendahl Jr
2017-05-15 03:31:13 +00:00
parent d1148a0966
commit 87c0646233
40 changed files with 236 additions and 210 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
const request = require('superagent');
const snekfetch = require('snekfetch');
const { CARBON_KEY, DBOTS_KEY } = process.env;
class Stats {
static dBots(server_count, id) {
request
snekfetch
.post(`https://bots.discord.pw/api/bots/${id}/stats`)
.set({ 'Authorization': DBOTS_KEY })
.send({ server_count })
@@ -12,7 +12,7 @@ class Stats {
}
static carbon(servercount) {
request
snekfetch
.post('https://www.carbonitex.net/discord/data/botdata.php')
.send({ key: CARBON_KEY, servercount })
.then(() => console.log('[DBots] Successfully posted to DBots.'))