From 83358d5c528c8ea98546c4a3df93edf710a133f7 Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 17:11:38 +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 e2b6715..ef6dd7b 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ function parseCommands(){ rootdir.forEach(categorydir => { if(!isDir("Juustobotti/commands/" + categorydir)) return; if(categorydir == "fun") return; - require("Juustobotti/commands/" + categorydir).forEach(file => { + fs.readdirSync("Juustobotti/commands/" + categorydir).forEach(file => { if(isDir("Juustobotti/commands/" + categorydir + "/" + file)) return; indexes.file = categorydir; cmdFiles.push(file);