From 308320e28e02fa97440c7477f19017b16f3e6ed1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 20:43:48 -0400 Subject: [PATCH] would help if we'd actually inst the client --- src/Client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.ts b/src/Client.ts index 667402e..499240a 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -68,6 +68,7 @@ export default class Client extends Eris.Client { const evtFiles = await fs.readdir('./events/'); const commands = await fs.readdir(path.join(__dirname, './commands/')); commands.forEach((command) => { + if (command === 'index.js') return; this.loadCommand(`./commands/${command}`); });