one liner
parent
7629d3284b
commit
9b412ae7df
|
@ -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]}`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue