From 1dc0ee955beb97f58c934ffa82309add2e5f82b3 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 29 Oct 2019 16:13:40 +0000 Subject: [PATCH] Stop function loader from erroring --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 0875c10..0fbf44e 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -54,7 +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; + if (func === 'index.ts' || func === 'index.js') return; try { (require(`./functions/${func}`).default)(this); } catch (error) {