Update index.mjs

This commit is contained in:
Flummi 2019-04-23 20:55:08 +00:00
parent d55586ce55
commit 9c8abb2b9c

View File

@ -11,20 +11,20 @@ const cuffeo = class cuffeo extends EventEmitter {
super(); super();
admins.admins = _admins; admins.admins = _admins;
for (let srv in cfg) { for (let srv in cfg) {
if(cfg[srv].val.enabled) { if(cfg[srv].enabled) {
switch (cfg[srv].val.type) { switch (cfg[srv].type) {
case "irc": case "irc":
clients.push({ clients.push({
name: cfg[srv].val.network, name: cfg[srv].network,
type: "irc", type: "irc",
client: new irclib(cfg[srv].val) client: new irclib(cfg[srv])
}); });
break; break;
case "tg": case "tg":
clients.push({ clients.push({
name: "tg", name: "tg",
type: "tg", type: "tg",
client: new tglib(cfg[srv].val) client: new tglib(cfg[srv])
}); });
break; break;
} }