From 9cff96318ad3bb2b93adedd5f46597edde535519 Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 2 Apr 2020 01:15:33 +0100 Subject: [PATCH] Fix. --- src/commands/eval.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index f5ea0cf..1836ffc 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -31,12 +31,9 @@ export default class Eval extends Command { } if (args[0] === '-a') { const index = evalMessage.findIndex((v) => v === '-a') + 1; - message.channel.createMessage(`${index}`); evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; } - message.channel.createMessage(`${evalString}\n${args[0]}\n${args[1]}`); - try { evaled = await eval(evalString); if (typeof evaled !== 'string') {