mirror of
https://github.com/musix-org/musix-oss
synced 2026-11-14 02:41:40 +00:00
cmduses
This commit is contained in:
1 parent
f6d82709be
commit
b83ee14cba
3 files changed
+30
No files matched your search
@@ -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