Update Client.ts

This commit is contained in:
Christer Warén 2021-09-09 18:55:42 +03:00
parent 3b5c241872
commit 24071eb5df

View File

@ -52,6 +52,9 @@ class RadioClient extends Client {
this.funcs.logger("Bot", "Starting");
this.funcs.logger("Maintenance Mode", "Enabled");
this.config.maintenance = 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}`);