Add config validator override switch

This commit is contained in:
hgw 2023-12-04 04:20:48 +00:00
parent 3c755c0ba2
commit ed3d18abfa
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4

6
bot.js
View File

@ -246,8 +246,14 @@ async function init() {
}
});
await timer(500)
try {
if (config.errorhandling.validity_override === "TRUE") {
consoleLog('[bot.init] Config validity override switch enabled, will not check for validity')
}
} catch(e) {
consoleLog('[bot.init] Checking config validity')
checkConfigValidity()
}
await timer(2000)
if (config.irc.ssl == "true") {
consoleLog('[bot.init] Initialisation completed, connecting to '+config.irc.server+'/'+config.irc.port+' (SSL) as '+config.irc.nickname);