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(', ')}`);