From d7a19e1b4ea6e3a9fba4fee06976f5064bcc0452 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 9 Nov 2019 23:14:02 -0500 Subject: [PATCH] move bindings --- src/Client.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index 8a0c400..9d3317e 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -83,13 +83,6 @@ export default class Client extends Eris.Client { } public async init() { - const intervals = await fs.readdir('./intervals'); - intervals.forEach((interval) => { - // eslint-disable-next-line - if (interval === 'index.js') return; - require(`./intervals/${interval}`).default(this); - this.signale.complete(`Loaded interval ${interval.split('.')[0]}`); - }); const evtFiles = await fs.readdir('./events/'); Object.values(commands).forEach((c: Function) => this.loadCommand(c)); @@ -108,6 +101,13 @@ export default class Client extends Eris.Client { this.on('ready', () => { this.signale.info(`Connected to Discord as ${this.user.username}#${this.user.discriminator}`); }); + const intervals = await fs.readdir('./intervals'); + intervals.forEach((interval) => { + // eslint-disable-next-line + if (interval === 'index.js') return; + require(`./intervals/${interval}`).default(this); + this.signale.complete(`Loaded interval ${interval.split('.')[0]}`); + }); } }