Update index.mjs
This commit is contained in:
parent
d55586ce55
commit
9c8abb2b9c
10
index.mjs
10
index.mjs
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user