From 6e7916d4f97e6f5ec741825b8f2d1a21b02c197a Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 8 Sep 2018 13:13:31 +0200 Subject: [PATCH] ... --- .gitignore | 2 +- package-lock.json | 10 +++++++--- src/index.mjs | 12 +++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 84c6d8b..0f0b850 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ node_modules/ logs/*.log cfg/*.json -b/*[!.empty] \ No newline at end of file +b/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3b54141..7d74e53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,9 +63,9 @@ } }, "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz", + "integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==" }, "cardinal": { "version": "2.1.1", @@ -104,6 +104,10 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, + "cuffeo": { + "version": "git+https://gitfap.de/keinBot/cuffeo.git#31a633bda62c05577b43bd61e0900658b79af5d9", + "from": "git+https://gitfap.de/keinBot/cuffeo.git" + }, "cycle": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", diff --git a/src/index.mjs b/src/index.mjs index 678ef8b..e1f89d2 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -1,6 +1,5 @@ import { logger } from "./inc/log"; import { read, cfg, admins } from "./inc/cfg"; -//import { wrapper } from "./inc/wrapper"; import { cuffeo } from "cuffeo"; import triggers from "./inc/trigger"; @@ -20,9 +19,12 @@ read().then(() => { }, 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)); -}).catch(err => logger.error(`(main) ${err.message}`)); +}).catch(err => { + console.log(err); + logger.error(`(main) ${err.message}`); +});