f0ckv2/src/index.mjs

29 lines
719 B
JavaScript
Raw Normal View History

import cfg from "../config.json";
2018-09-08 09:21:26 +00:00
import { cuffeo } from "cuffeo";
2018-09-02 10:07:40 +00:00
import triggers from "./inc/trigger";
import events from "./inc/events";
2019-04-25 18:00:47 +00:00
import "./websrv";
(async () => {
// Chatbots
2019-04-25 18:00:47 +00:00
/*const self = {
2018-09-02 10:07:40 +00:00
_trigger: new Map(),
trigger: function trigger(args) {
this.call = args.call;
this.help = args.help || false;
this.level = args.level || 0;
this.active = args.hasOwnProperty("active") ? args.active : true;
this.set = args.set || "all"; // uwe, nxy, f0ck, all
this.clients = args.clients || ["irc", "tg"];
2018-09-02 10:07:40 +00:00
this.f = args.f;
},
bot: new cuffeo(cfg.clients)
2018-09-02 10:07:40 +00:00
};
2018-09-08 11:13:31 +00:00
triggers.forEach(mod => mod(self));
2019-04-25 18:00:47 +00:00
events.forEach(event => event(self));*/
//
})();