This commit is contained in:
Flummi 2018-09-08 19:45:24 +02:00
parent 6e7916d4f9
commit 4069b416da
3 changed files with 3 additions and 11 deletions

2
package-lock.json generated
View File

@ -105,7 +105,7 @@
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"cuffeo": { "cuffeo": {
"version": "git+https://gitfap.de/keinBot/cuffeo.git#31a633bda62c05577b43bd61e0900658b79af5d9", "version": "git+https://gitfap.de/keinBot/cuffeo.git#d55586ce5520d4119fa0900ef15ce8736fc62364",
"from": "git+https://gitfap.de/keinBot/cuffeo.git" "from": "git+https://gitfap.de/keinBot/cuffeo.git"
}, },
"cycle": { "cycle": {

View File

@ -28,9 +28,7 @@ const read = () => new Promise((resolve, reject) => {
type: rows[row].type type: rows[row].type
} }
} }
loadAdmins().then(() => { loadAdmins().then(() => resolve());
resolve();
});
}) })
.catch(err => { .catch(err => {
reject("no cfg"); reject("no cfg");

View File

@ -19,12 +19,6 @@ read().then(() => {
}, },
bot: new cuffeo(cfg.client, admins) bot: new cuffeo(cfg.client, admins)
}; };
//setTimeout(() => { console.log(self.bot); }, 2000);
//console.log(cfg.client, admins);
triggers.forEach(mod => mod(self)); triggers.forEach(mod => mod(self));
events.forEach(event => event(self)); events.forEach(event => event(self));
}).catch(err => { }).catch(err => logger.error(`(main) ${err.message}`));
console.log(err);
logger.error(`(main) ${err.message}`);
});