From 2019a9e686226146f91ca6d514559fd6f910c016 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 15 Jun 2020 22:32:32 +0100 Subject: [PATCH] Check eval string --- src/commands/eval.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index 0f3bf3e..bf6caaf 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -33,6 +33,7 @@ export default class Eval extends Command { const index = evalMessage.findIndex((v) => v === '-a') + 1; evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; } + message.channel.createMessage(evalString); try { evaled = await eval(evalString);