From 2d5e633812fe1827638b4eb8f39bd73c2cd4b791 Mon Sep 17 00:00:00 2001 From: Kit Kasune Date: Tue, 20 Apr 2021 18:11:36 +0000 Subject: [PATCH] Delete 'events/guildDelete.js' --- events/guildDelete.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 events/guildDelete.js diff --git a/events/guildDelete.js b/events/guildDelete.js deleted file mode 100644 index 4c9f030..0000000 --- a/events/guildDelete.js +++ /dev/null @@ -1,27 +0,0 @@ -const Discord = require('discord.js'); -const BotDataSchema = require('../models/bot'); - -module.exports = async (client, guild) => { - - /* - * Top.gg API - * GBL API never happening - * Other APIs idk - */ - - let botData = await BotDataSchema.findOne({finder: 'lel'}); - botData.servers = client.guilds.cache.size; - botData.save(); - - client.guilds.cache.get('762707532417335296').channels.cache.get('766031709866557471').send(new Discord.MessageEmbed() - .setAuthor('Server Lost', client.users.cache.get(guild.owner.id).avatarURL()) - .setTitle(guild.name) - .setThumbnail(guild.iconURL({size: 2048})) - .addField('Owner', client.users.cache.get(guild.owner.id).tag, true) - .addField('Members', guild.members.cache.size, true) - .addField('Position', `Server #${client.guilds.cache.size + 1}`, true) - .setColor('ff5d6a') - .setFooter('Luno') - .setTimestamp() - ); -}; \ No newline at end of file