From b0ef059a52a487725145fb72fd23ef416b36876c Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:05:20 -0600 Subject: [PATCH] Remove unused file (servers.js) --- commands/servers.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 commands/servers.js diff --git a/commands/servers.js b/commands/servers.js deleted file mode 100644 index a8875a4..0000000 --- a/commands/servers.js +++ /dev/null @@ -1,37 +0,0 @@ - -module.exports = { - name: 'servers', - description: 'Lists what servers the bot is in', - execute(message) { - if (message.author.id == 309427567004483586) { - var i = 0, guildLength = 0, ownerData = {}; -var fileToExportTo = "./servers.txt"; - -client.guilds.forEach(g=> { - guildLength = client.guilds.size; - var moreSquares = ""; - for (var cnt = 0; cnt < g.name.length; cnt++) moreSquares = moreSquares + "="; - - var content = "\n== " + g.name + " ==\nID: " + g.id + "\nOWNER: " + g.owner.user.tag + " (" + g.owner.id + ")\n===" + moreSquares + "===\n"; - require("fs").appendFile(fileToExportTo, content, 'utf8', (err) => { if (err) { console.error(err); } }); - - if (ownerData[g.owner.id] == null) - ownerData[g.owner.id] = { "id": g.owner.id, "tag": g.owner.user.tag, "count": 1 }; - else - ownerData[g.owner.id].count = (ownerData[g.owner.id].count + 1); - i++; -}); - -var morecontent = []; -for (let owner in ownerData) { - morecontent.push(ownerData[owner]["tag"] + " (" + ownerData[owner]["id"] + "): " + ownerData[owner]["count"]); -}; - -var content = "\n\n== FINAL COUNTS [as they appear they owned] ==\n" + morecontent.join("\n") + "\n==============================================\nExported: " + new Date().toString() + "\nData is as accurate as exported time & date."; -require("fs").appendFile(fileToExportTo, content, 'utf8', (err) => { if (err) { console.error(err); } }); -if (i == guildLength) - message.channel.send(client.config.system.emotes.success + " Done."); - } else { - message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); - } - }} \ No newline at end of file