From 98c11c51aae4d4b17564afea03b6841ca559ec21 Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 17:08:49 +0100 Subject: [PATCH] Fix things (hopefully) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7744da5..6373560 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ function parseCommands(){ var rootdir = fs.readdirSync("Juustobotti/commands"); rootdir.forEach(categorydir => { if(!isDir("Juustobotti/commands/" + categorydir)) return; - categorydir.forEach(file => { + require("Juustobotti/commands/" + categorydir).forEach(file => { if(isDir("Juustobotti/commands/" + categorydir + "/" + file)) return; indexes.file = categorydir; cmdFiles.push(file);