mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Don't track unknown command AT ALL
This commit is contained in:
@@ -357,6 +357,7 @@ client.on('error', err => client.logger.error(err.stack));
|
||||
client.on('warn', warn => client.logger.warn(warn));
|
||||
|
||||
client.on('commandRun', async command => {
|
||||
if (command.unknown) return;
|
||||
client.logger.info(`[COMMAND] ${command.name} was used.`);
|
||||
if (command.uses === undefined) return;
|
||||
command.uses++;
|
||||
|
||||
Reference in New Issue
Block a user