From 260e3215c2deb8837ef56563faaa34722a9db731 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 12 Apr 2020 15:35:13 +0300 Subject: [PATCH] stuff --- structure/client/components/observers/CommandHandler.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/structure/client/components/observers/CommandHandler.js b/structure/client/components/observers/CommandHandler.js index 0215ff9..8e34537 100644 --- a/structure/client/components/observers/CommandHandler.js +++ b/structure/client/components/observers/CommandHandler.js @@ -24,6 +24,8 @@ class CommandHandler extends Observer { async handleMessage(message) { + //const time1 = new Date().getTime(); + if(!this.client._built || message.webhookID || message.author.bot @@ -40,7 +42,10 @@ class CommandHandler extends Observer { message.command = command; - return await this.handleCommand(message, newArgs); + await this.handleCommand(message, newArgs); + + //const time2 = new Date().getTime(); + //console.log(`${time2-time1}ms`); } @@ -241,7 +246,7 @@ class CommandHandler extends Observer { } - message.channel.send(stripIndents`**arguments:** ${parsedArguments.map(a=>`${a.name}: ${a.value}`).join(' | ')} + await message.channel.send(stripIndents`**arguments:** ${parsedArguments.map(a=>`${a.name}: ${a.value}`).join(' | ')} **words:** ${params.join(', ')}`);