From 16d78b39d1e4e4de37f75b1cd16f4bdc668950e0 Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 18:26:03 +0100 Subject: [PATCH] Fix some stuff --- index.js | 4 ++++ start.sh | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 99ac7f6..a715e5a 100644 --- a/index.js +++ b/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; } diff --git a/start.sh b/start.sh index e6403f5..ad293f8 100755 --- a/start.sh +++ b/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 .