Fix things (hopefully)

This commit is contained in:
Ecolipsy 2021-12-02 17:10:24 +01:00
parent 98c11c51aa
commit d5a79f63ab

View file

@ -17,6 +17,7 @@ function parseCommands(){
var rootdir = fs.readdirSync("Juustobotti/commands");
rootdir.forEach(categorydir => {
if(!isDir("Juustobotti/commands/" + categorydir)) return;
if(categorydir == "fun") return;
require("Juustobotti/commands/" + categorydir).forEach(file => {
if(isDir("Juustobotti/commands/" + categorydir + "/" + file)) return;
indexes.file = categorydir;