Remove Fidget Flyer

This commit is contained in:
Daniel Odendahl Jr
2017-04-24 20:55:32 +00:00
parent 7395ced706
commit 9a75ee549b
2 changed files with 2 additions and 19 deletions
+2 -4
View File
@@ -1,5 +1,5 @@
const { CommandoClient } = require('discord.js-commando');
const { discordBots, carbon, webhook } = require('./poststats.js');
const { discordBots, carbon } = require('./poststats.js');
const path = require('path');
const client = new CommandoClient({
commandPrefix: 'x;',
@@ -33,7 +33,6 @@ client.on('guildCreate', async(guild) => {
const guilds = await client.shard.fetchClientValues('guilds.size');
const count = guilds.reduce((prev, val) => prev + val, 0);
console.log(`[Count] ${count}`);
webhook(`Joined ${guild.name}!\nOwned by: ${guild.owner.user.tag}\nID: ${guild.id}`, `Shard ${client.shard.id}`, 0x33CC33);
try {
await carbon(count);
console.log(`[Carbon] Successfully posted to Carbon.`);
@@ -53,7 +52,6 @@ client.on('guildDelete', async(guild) => {
const guilds = await client.shard.fetchClientValues('guilds.size');
const count = guilds.reduce((prev, val) => prev + val, 0);
console.log(`[Count] ${count}`);
webhook(`Left ${guild.name}...\nOwned by: ${guild.owner.user.tag}\nID: ${guild.id}`, `Shard ${client.shard.id}`, 0xFF3300);
try {
await carbon(count);
console.log(`[Carbon] Successfully posted to Carbon.`);
@@ -70,7 +68,7 @@ client.on('guildDelete', async(guild) => {
client.on('disconnect', (event) => {
console.log(`[Disconnect] Shard ${client.shard.id} disconnected with Code ${event.code}.`);
webhook(`Disconnected with Code ${event.code}...`, `Shard ${client.shard.id}`, 0xFF3300);
process.exit(0);
});
client.setTimeout(() => {
-15
View File
@@ -19,18 +19,3 @@ module.exports.carbon = (count) => {
servercount: count
});
};
module.exports.webhook = (description, author, color) => {
const embed = {
description: description,
author: {
name: author
},
color: color
};
return request
.post(process.env.LOGGER_URL)
.send({
embeds: [embed]
});
};