From 9fdf37374921120c8b02a074578ca66bb5d421fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Fri, 7 Sep 2018 01:00:20 +0200 Subject: [PATCH] disable prune beacause anybody can do it --- commands/eval.js | 32 -------------------------------- commands/{prune.js => prune} | 0 2 files changed, 32 deletions(-) delete mode 100644 commands/eval.js rename commands/{prune.js => prune} (100%) diff --git a/commands/eval.js b/commands/eval.js deleted file mode 100644 index ae2b9694..00000000 --- a/commands/eval.js +++ /dev/null @@ -1,32 +0,0 @@ -module.exports = { - name: 'eval', - description: 'use command', - execute(message) { - if (message.author.id === '267065637183029248') { - function clean(text) { - if (typeof(text) === "string") - return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203)); - else - return text; - } - client.on("message", message => { - const args = message.content.split(" ").slice(1); - - if (message.content.startsWith(config.prefix + "eval")) { - if(message.author.id !== config.ownerID) return; - try { - const code = args.join(" "); - let evaled = eval(code); - - if (typeof evaled !== "string") - evaled = require("util").inspect(evaled); - - message.channel.send(clean(evaled), {code:"xl"}); - } catch (err) { - message.channel.send(`\`ERROR\` \`\`\`xl\n${clean(err)}\n\`\`\``); - } - } - }); - } - }, -}; diff --git a/commands/prune.js b/commands/prune similarity index 100% rename from commands/prune.js rename to commands/prune