mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 19:43:39 +00:00
Moved commands map to commands.js
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user