Fix some stuff

This commit is contained in:
Ecolipsy 2021-12-02 18:26:03 +01:00
parent 549ab4e19d
commit 16d78b39d1
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -2,7 +2,6 @@ while [ true ]
do
rm -rf Juustobotti
git clone https://github.com/Pizzakeitto/Juustobotti.git
rm Juustobotti/.git
echo '{"prefix": "ju!"}' > Juustobotti/config.json
git pull
node .