From 0fe3a9ddac5ccd1701a6b4956ba81e15a5e344f5 Mon Sep 17 00:00:00 2001 From: murm Date: Wed, 15 Mar 2023 10:57:57 -0400 Subject: [PATCH] fix exec formatting --- commands/general/exec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/general/exec.js b/commands/general/exec.js index 060a493..0f6d94f 100644 --- a/commands/general/exec.js +++ b/commands/general/exec.js @@ -17,7 +17,7 @@ class ExecCommand extends Command { const execed = await exec(code); if (execed.stderr) return `${await clean(execed.stderr)}`; const cleaned = await clean(execed.stdout); - const sendString = `\`\`\`bash\n${cleaned}\n\`\`\``; + const sendString = `${cleaned}`; if (sendString.length >= 2000) { return { text: "The result was too large, so here it is as a file:", @@ -28,7 +28,7 @@ class ExecCommand extends Command { return sendString; } } catch (err) { - return `\`ERROR\` \`\`\`xl\n${await clean(err)}\n\`\`\``; + return `\`ERROR\` ${await clean(err)}`; } }