This commit is contained in:
Flummi
2018-09-08 11:21:26 +02:00
parent 75a700e332
commit 510838db4d
3 changed files with 30 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import { logger } from "./inc/log";
import { read, cfg } from "./inc/cfg";
import { wrapper } from "./inc/wrapper";
import { read, cfg, admins } from "./inc/cfg";
//import { wrapper } from "./inc/wrapper";
import { cuffeo } from "cuffeo";
import triggers from "./inc/trigger";
import events from "./inc/events";
@@ -17,11 +18,10 @@ read().then(() => {
this.clients = args.clients || ["irc", "tg", "discord"];
this.f = args.f;
},
bot: new wrapper()
bot: new cuffeo(cfg.client, admins)
};
triggers.forEach(mod => {
console.log(mod);
mod(self);
});
events.forEach(event => event(self));