forked from Galactic/galactic-bot
stuff
This commit is contained in:
parent
d79c29acfd
commit
260e3215c2
@ -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(', ')}`);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user