Fix things (hopefully)
This commit is contained in:
parent
98c11c51aa
commit
d5a79f63ab
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue