one liner

merge-requests/5/head
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`);
intervals.forEach((interval) => {
if (interval === 'index.js') {
return;
}
if (interval === 'index.js') return;
require(`${__dirname}/../intervals/${interval}`).default(this);
this.signale.complete(`Loaded interval ${interval.split('.')[0]}`);
});