From 96b3e55dd134ae816436e57af0738e5469641d71 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 15 Jun 2020 22:57:12 +0100 Subject: [PATCH] aaaa --- src/commands/eval.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index e0d44e3..e209fe4 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -27,16 +27,16 @@ 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; - await message.channel.createMessage(evalMessage.slice(index).join(' ').trim()); - evalString = evalMessage.slice(index).join(' ').trim(); + await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`); + evalString = `eval after depth: ${evalMessage.slice(index).join(' ').trim()}`; } await message.channel.createMessage(evalString); if (args[0] === '-a') { const index = evalMessage.findIndex((v) => v === '-a') + 1; - await message.channel.createMessage(evalMessage.slice(index).join(' ').trim()); + await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`); evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; } - await message.channel.createMessage(evalString); + await message.channel.createMessage(`eval after async: ${evalString}`); try { evaled = await eval(evalString);