mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
add oneOf handler
This commit is contained in:
@@ -398,6 +398,7 @@ 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.ownerOnly) return;
|
||||
const channel = await client.fetchCommandChannel();
|
||||
if (!channel) return;
|
||||
channel.send(`\`${command.name}\` was used! It has now been used **${formatNumber(command.uses)}** times!`)
|
||||
|
||||
Reference in New Issue
Block a user