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);