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");
|
var rootdir = fs.readdirSync("Juustobotti/commands");
|
||||||
rootdir.forEach(categorydir => {
|
rootdir.forEach(categorydir => {
|
||||||
if(!isDir("Juustobotti/commands/" + categorydir)) return;
|
if(!isDir("Juustobotti/commands/" + categorydir)) return;
|
||||||
categorydir.forEach(file => {
|
require("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