diff --git a/index.js b/index.js index e084fd1..50fb6a8 100644 --- a/index.js +++ b/index.js @@ -73,6 +73,9 @@ client.on('ready', async () => { required: true } ] + }, + { + name: "pardon" } ] } @@ -312,7 +315,7 @@ const watchFiles = () => { if (Object.keys(funcs.diff(ipBans, tmp).added).length > 40 || Object.keys(funcs.diff(ipBans, tmp).removed).length > 40) { console.log("Too many changes, logging and ignoring") fs.writeFileSync(`errors/changes-${Date.now()}.log`, JSON.stringify(funcs.diff(idBans, tmp), null, 2)); - return; + break; } sendMessages(funcs.diff(ipBans, tmp)) ipBans = jsonfix(tmp) @@ -327,7 +330,7 @@ const watchFiles = () => { if (Object.keys(funcs.diff(idBans, tmp).added).length > 40 || Object.keys(funcs.diff(idBans, tmp).removed).length > 40) { console.log("Too many changes, logging and ignoring") fs.writeFileSync(`errors/changes-${Date.now()}.log`, JSON.stringify(funcs.diff(idBans, tmp), null, 2)); - return; + break; } sendMessages(funcs.diff(idBans, tmp)) idBans = jsonfix(tmp)