Fix things (hopefully)
This commit is contained in:
parent
d5a79f63ab
commit
83358d5c52
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -18,7 +18,7 @@ function parseCommands(){
|
||||||
rootdir.forEach(categorydir => {
|
rootdir.forEach(categorydir => {
|
||||||
if(!isDir("Juustobotti/commands/" + categorydir)) return;
|
if(!isDir("Juustobotti/commands/" + categorydir)) return;
|
||||||
if(categorydir == "fun") 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;
|
if(isDir("Juustobotti/commands/" + categorydir + "/" + file)) return;
|
||||||
indexes.file = categorydir;
|
indexes.file = categorydir;
|
||||||
cmdFiles.push(file);
|
cmdFiles.push(file);
|
||||||
|
|
Loading…
Reference in a new issue