Add config validator override switch
This commit is contained in:
parent
3c755c0ba2
commit
ed3d18abfa
10
bot.js
10
bot.js
@ -246,8 +246,14 @@ async function init() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
await timer(500)
|
await timer(500)
|
||||||
consoleLog('[bot.init] Checking config validity')
|
try {
|
||||||
checkConfigValidity()
|
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)
|
await timer(2000)
|
||||||
if (config.irc.ssl == "true") {
|
if (config.irc.ssl == "true") {
|
||||||
consoleLog('[bot.init] Initialisation completed, connecting to '+config.irc.server+'/'+config.irc.port+' (SSL) as '+config.irc.nickname);
|
consoleLog('[bot.init] Initialisation completed, connecting to '+config.irc.server+'/'+config.irc.port+' (SSL) as '+config.irc.nickname);
|
||||||
|
Loading…
Reference in New Issue
Block a user