Remove carbon, rip

This commit is contained in:
Daniel Odendahl Jr
2017-08-30 00:40:45 +00:00
parent 6360f8dd7a
commit 46bffefa68
4 changed files with 4 additions and 17 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
Internet Systems Consortium license
===================================
Copyright (c) 2017, dragonfire535
Copyright (c) 2017, CherryStar
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
+1 -3
View File
@@ -11,7 +11,7 @@ const client = new CommandoClient({
messageCacheLifetime: 600,
messageSweepInterval: 120
});
const { carbon, dBots, dBotsOrg, filterTopics, parseTopic } = require('./structures/Util');
const { dBots, dBotsOrg, filterTopics, parseTopic } = require('./structures/Util');
client.registry
.registerDefaultTypes()
@@ -81,7 +81,6 @@ client.on('guildCreate', async guild => {
console.log(`[GUILD] I have joined ${guild.name}! (${guild.id})`);
const guilds = await client.shard.fetchClientValues('guilds.size');
const count = guilds.reduce((prev, val) => prev + val, 0);
carbon(count);
dBots(count, client.user.id);
dBotsOrg(count, client.user.id);
});
@@ -90,7 +89,6 @@ client.on('guildDelete', async guild => {
console.log(`[GUILD] I have left ${guild.name}... (${guild.id})`);
const guilds = await client.shard.fetchClientValues('guilds.size');
const count = guilds.reduce((prev, val) => prev + val, 0);
carbon(count);
dBots(count, client.user.id);
dBotsOrg(count, client.user.id);
});
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "33.0.0",
"version": "32.0.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {
+1 -12
View File
@@ -1,6 +1,6 @@
const snekfetch = require('snekfetch');
const { promisify } = require('util');
const { CARBON_KEY, DBOTS_KEY, DBOTSORG_KEY } = process.env;
const { DBOTS_KEY, DBOTSORG_KEY } = process.env;
class Util {
static cleanXML(str) {
@@ -22,17 +22,6 @@ class Util {
.catch(err => console.error(`[DBOTS] Failed to post to Discord Bots. ${err}`));
}
static carbon(count) {
snekfetch
.post('https://www.carbonitex.net/discord/data/botdata.php')
.send({
key: CARBON_KEY,
servercount: count
})
.then(() => console.log('[CARBON] Successfully posted to Carbon.'))
.catch(err => console.error(`[CARBON] Failed to post to Carbon. ${err}`));
}
static dBotsOrg(count, id) {
snekfetch
.post(`https://discordbots.org/api/bots/${id}/stats`)