Fix things (hopefully)

This commit is contained in:
Ecolipsy 2021-12-02 17:11:38 +01:00
parent d5a79f63ab
commit 83358d5c52

View file

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