Fix things (hopefully)
This commit is contained in:
parent
83906b211d
commit
98c11c51aa
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -17,7 +17,7 @@ function parseCommands(){
|
|||
var rootdir = fs.readdirSync("Juustobotti/commands");
|
||||
rootdir.forEach(categorydir => {
|
||||
if(!isDir("Juustobotti/commands/" + categorydir)) return;
|
||||
categorydir.forEach(file => {
|
||||
require("Juustobotti/commands/" + categorydir).forEach(file => {
|
||||
if(isDir("Juustobotti/commands/" + categorydir + "/" + file)) return;
|
||||
indexes.file = categorydir;
|
||||
cmdFiles.push(file);
|
||||
|
|
Loading…
Reference in a new issue