mirror of
https://github.com/musix-org/musix-oss
synced 2025-08-01 20:54:33 +00:00
cmduses
This commit is contained in:
1
index.js
1
index.js
@@ -41,6 +41,7 @@ client.config = require('./config/config.js');
|
||||
const commandFiles = fs.readdirSync('./commands/').filter(f => f.endsWith('.js'));
|
||||
for (const file of commandFiles) {
|
||||
const command = require(`./commands/${file}`);
|
||||
command.uses = 0;
|
||||
client.commands.set(command.name, command);
|
||||
client.commandAliases.set(command.alias, command);
|
||||
}
|
||||
|
Reference in New Issue
Block a user