From a350cfbdc6a4589f5ec56ea9cd0faafb1352e572 Mon Sep 17 00:00:00 2001 From: murm Date: Wed, 15 Mar 2023 10:46:45 -0400 Subject: [PATCH] fix reload and formatting on exec --- commands/general/exec.js | 2 +- commands/general/reload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/general/exec.js b/commands/general/exec.js index c5bef54..8f40f72 100644 --- a/commands/general/exec.js +++ b/commands/general/exec.js @@ -15,7 +15,7 @@ class ExecCommand extends Command { const code = this.options.cmd ?? this.args.join(" "); try { const execed = await exec(code); - if (execed.stderr) return `\`\`\`xl\n${await clean(execed.stderr)}\n\`\`\``; + if (execed.stderr) return `\`\`\`\n${await clean(execed.stderr)}\n\`\`\``; const cleaned = await clean(execed.stdout); const sendString = `\`\`\`bash\n${cleaned}\n\`\`\``; if (sendString.length >= 2000) { diff --git a/commands/general/reload.js b/commands/general/reload.js index 9d75543..0f2b4d5 100644 --- a/commands/general/reload.js +++ b/commands/general/reload.js @@ -5,7 +5,7 @@ import { paths } from "../../utils/collections.js"; class ReloadCommand extends Command { async run() { const owners = process.env.OWNER.split(","); - if (!owners.includes(this.sender)) return "Only the bot owner can reload commands!"; + if (!owners.includes(this.author)) return "Only the bot owner can reload commands!"; const commandName = this.options.cmd ?? this.args.join(" "); if (!commandName || !commandName.trim()) return "You need to provide a command to reload!"; await this.acknowledge();