From f5f04c5a0c71d36f872e8948cbdd516cd6080986 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 15 Jun 2020 22:47:31 +0100 Subject: [PATCH] as above --- src/commands/eval.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index c5219fc..d3b487d 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -27,11 +27,13 @@ export default class Eval extends Command { depth = Number(args[0].replace('-d', '')); if (!depth || depth < 0) depth = 0; const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1; + message.channel.createMessage(evalMessage.slice(index).join(' ').trim()); evalString = evalMessage.slice(index).join(' ').trim(); } message.channel.createMessage(evalString); if (args[0] === '-a') { const index = evalMessage.findIndex((v) => v === '-a') + 1; + message.channel.createMessage(evalMessage.slice(index).join(' ').trim()); evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; } message.channel.createMessage(evalString);