This commit is contained in:
Erik 2020-04-12 15:35:13 +03:00
parent d79c29acfd
commit 260e3215c2

View File

@ -24,6 +24,8 @@ class CommandHandler extends Observer {
async handleMessage(message) { async handleMessage(message) {
//const time1 = new Date().getTime();
if(!this.client._built if(!this.client._built
|| message.webhookID || message.webhookID
|| message.author.bot || message.author.bot
@ -40,7 +42,10 @@ class CommandHandler extends Observer {
message.command = command; 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(', ')}`); **words:** ${params.join(', ')}`);