From 02e41276cf0984bcb7bd4aab95684e65794eaafa Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 15 Jun 2020 23:00:43 +0100 Subject: [PATCH] args --- 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 1a240cc..9c8321e 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -30,13 +30,13 @@ export default class Eval extends Command { await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`); evalString = evalMessage.slice(index).join(' ').trim(); } - await message.channel.createMessage(`eval after depth: ${evalString}`); + await message.channel.createMessage(`eval after depth: ${evalString}\n${args.join()}`); if (args[0] === '-a') { const index = evalMessage.findIndex((v) => v === '-a') + 1; await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`); evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; } - await message.channel.createMessage(`eval after async: ${evalString}`); + await message.channel.createMessage(`eval after async: ${evalString}\n${args.join()}`); try { evaled = await eval(evalString);