From 12086cf8150c76d9864df8b03515c04accd34a4e Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 2 Apr 2020 01:09:56 +0100 Subject: [PATCH] Fix? --- src/commands/eval.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index 38c64ae..8f1e49b 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -18,7 +18,7 @@ export default class Eval extends Command { public async run(message: Message, args: string[]) { try { - const evalMessage = message.content.slice(this.client.config.prefix.length).split(' ').slice(1); + const evalMessage = message.content.slice(this.client.config.prefix.length).trim().split(' ').slice(1); let evalString = evalMessage.join(' ').trim(); let evaled: any; let depth = 0;