From 6dc751bbcb357010cb58e3c13f9323fda4bdf02b Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 29 Jul 2021 14:57:54 -0600 Subject: [PATCH] extreme levels of tiny brain --- commands/dev/execute.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/dev/execute.js b/commands/dev/execute.js index 1c25e55..93fc1f3 100644 --- a/commands/dev/execute.js +++ b/commands/dev/execute.js @@ -13,7 +13,9 @@ module.exports = { }, help: "Dev only! Executes a console command", async execute(message, msg, args, cmd, prefix, mention, client) { + if (!client.developers.includes(message.author.id)) {return message.channel.send("You must be a developer to do this!");} if (!args.length) {return message.channel.send(`Syntax: \`${prefix}execute \``);} + if (args.join(" ").match(/^rm\s+/gm)) {return message.channel.send(":(");} return cp.exec(args.join(" "), function(error, stdout, stderr) { if (error) { return message.channel.send(new Discord.MessageEmbed()