1
0
Fork 0

one liner

master
eirk 2021-08-10 17:18:35 -04:00
parent 7629d3284b
commit 9b412ae7df
1 changed files with 1 additions and 3 deletions

View File

@ -159,9 +159,7 @@ export default class Client extends DiscordClient {
}); });
const intervals = await fs.readdir(`${__dirname}/../intervals`); const intervals = await fs.readdir(`${__dirname}/../intervals`);
intervals.forEach((interval) => { intervals.forEach((interval) => {
if (interval === 'index.js') { if (interval === 'index.js') return;
return;
}
require(`${__dirname}/../intervals/${interval}`).default(this); require(`${__dirname}/../intervals/${interval}`).default(this);
this.signale.complete(`Loaded interval ${interval.split('.')[0]}`); this.signale.complete(`Loaded interval ${interval.split('.')[0]}`);
}); });