Flipped boolean logic to not break old configs
This commit is contained in:
parent
2ad6627e02
commit
529344c76d
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
"Username": "",
|
||||
"Password": "",
|
||||
"PNSLToken": "",
|
||||
"UsePNSL": true,
|
||||
"IgnorePNSL": false,
|
||||
"Users": [],
|
||||
"Prefix": "!!",
|
||||
"MaxConnections": 30,
|
||||
|
|
4
index.js
4
index.js
|
@ -121,7 +121,7 @@ const say = (channel, message) => {
|
|||
getConnection().say(channel, message);
|
||||
};
|
||||
|
||||
if (Config.UsePNSL){
|
||||
if (!Config.IgnorePNSL){
|
||||
const pnslWebSocket = new WS('wss://bot.tetyys.com/api/wss', [], {headers: {Authorization: `Bearer ${Config.PNSLToken}`}});
|
||||
|
||||
pnslWebSocket.on('open', () => {
|
||||
|
@ -210,7 +210,7 @@ if (Config.UsePNSL){
|
|||
const mods = await getConnection().getMods(channel);
|
||||
if (!mods.includes(Config.Username)) return say(Config.Username, `I am not a moderator in channel ${channel}!`);
|
||||
}
|
||||
if (Config.UsePNSL) {
|
||||
if (!Config.IgnorePNSL) {
|
||||
const data = await fetchList(listID);
|
||||
await runList(data.listData, listID, channel || channelName);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue