Moved commands map to commands.js

This commit is contained in:
Christer Warén committed 2021-09-16 03:17:50 +03:00
1 parent ebf1d0759e
commit 8d5291cbb0
2 files changed
+3 -6

No files matched your search

-6
View File
@@ -59,12 +59,6 @@ class RadioClient extends Client {
this.funcs.logger("Maintenance Mode", "Enabled");
this.config.maintenanceMode = true;
const commandFiles = fs.readdirSync(path.join("./src/client/commands")).filter(f => f.endsWith(".js"));
for (const file of commandFiles) {
const command = require(`./client/commands/${file}`);
this.commands.set(command.name, command);
}
this.on("ready", () => {
require(`${events}ready`).execute(this);
});