Add config validator override switch
This commit is contained in:
parent
3c755c0ba2
commit
ed3d18abfa
6
bot.js
6
bot.js
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user