mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Yeah, sorry, not a fan
This commit is contained in:
@@ -64,8 +64,6 @@ client.registry
|
||||
])
|
||||
.registerCommandsIn(path.join(__dirname, 'commands'));
|
||||
|
||||
client.slashRegistry.registerCommandsIn(path.join(__dirname, 'slash-commands'));
|
||||
|
||||
client.on('ready', async () => {
|
||||
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
|
||||
|
||||
@@ -329,11 +327,6 @@ 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!`)
|
||||
.catch(() => null);
|
||||
});
|
||||
|
||||
client.on('commandError', (command, err) => client.logger.error(`[COMMAND:${command.name}]\n${err.stack}`));
|
||||
|
||||
Reference in New Issue
Block a user