router, api and stuff

This commit is contained in:
Flummi
2019-04-25 18:00:47 +00:00
parent 54ea970a3e
commit fb633ba64f
8 changed files with 145 additions and 67 deletions

View File

@ -1,13 +1,14 @@
import cfg from "../config.json";
import sql from "./inc/sql";
import { cuffeo } from "cuffeo";
import triggers from "./inc/trigger";
import events from "./inc/events";
import "./websrv";
(async () => {
// Chatbots
const self = {
/*const self = {
_trigger: new Map(),
trigger: function trigger(args) {
this.call = args.call;
@ -21,7 +22,7 @@ import events from "./inc/events";
bot: new cuffeo(cfg.clients)
};
triggers.forEach(mod => mod(self));
events.forEach(event => event(self));
events.forEach(event => event(self));*/
//
})();