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;