From 27cbb57ccfb3660903061b84e10a5ff0d8fc6b63 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 15 Jun 2020 22:58:52 +0100 Subject: [PATCH] correct place --- src/commands/eval.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index e209fe4..1a240cc 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -28,9 +28,9 @@ export default class Eval extends Command { if (!depth || depth < 0) depth = 0; const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1; await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`); - evalString = `eval after depth: ${evalMessage.slice(index).join(' ').trim()}`; + evalString = evalMessage.slice(index).join(' ').trim(); } - await message.channel.createMessage(evalString); + await message.channel.createMessage(`eval after depth: ${evalString}`); if (args[0] === '-a') { const index = evalMessage.findIndex((v) => v === '-a') + 1; await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`);