Fix some stuff
This commit is contained in:
parent
549ab4e19d
commit
16d78b39d1
4
index.js
4
index.js
|
@ -11,6 +11,8 @@ function isDir(path){
|
|||
}
|
||||
}
|
||||
|
||||
client.commands = new dc.Collection();
|
||||
|
||||
function parseCommands(){
|
||||
var cmdFiles = [];
|
||||
var indexes = {}
|
||||
|
@ -25,10 +27,12 @@ function parseCommands(){
|
|||
});
|
||||
});
|
||||
var cmds = [];
|
||||
client.commands = new dc.Collection();
|
||||
cmdFiles.forEach(yes => {
|
||||
var cmdObj = require("./Juustobotti/commands/" + yes.dir + "/" + yes.file);
|
||||
cmds.push(cmdObj);
|
||||
});
|
||||
client.commands.set(cmds);
|
||||
return cmds;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue