Fix some stuff
This commit is contained in:
parent
549ab4e19d
commit
16d78b39d1
2 changed files with 4 additions and 1 deletions
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;
|
||||
}
|
||||
|
||||
|
|
1
start.sh
1
start.sh
|
@ -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 .
|
||||
|
|
Loading…
Reference in a new issue