From ed3d18abfa7289188e6bc693056106b95cccf22f Mon Sep 17 00:00:00 2001 From: hgw Date: Mon, 4 Dec 2023 04:20:48 +0000 Subject: [PATCH] Add config validator override switch --- bot.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 6ce071c..820b925 100644 --- a/bot.js +++ b/bot.js @@ -246,8 +246,14 @@ async function init() { } }); await timer(500) - consoleLog('[bot.init] Checking config validity') - checkConfigValidity() + 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);