From 353a4d813702f279e18cde55337503a9ca98324c Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 23:08:45 -0400 Subject: [PATCH] fix issue in loadFunctions func --- src/Client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.ts b/src/Client.ts index 1adade3..5e813e0 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -54,6 +54,7 @@ export default class Client extends Eris.Client { private async loadFunctions() { const functions = await fs.readdir('./functions'); functions.forEach(async (func) => { + if (func === 'index.ts') return; try { require(`./functions/${func}`).default(this); } catch (error) {