From 59ea62481ba3ad32b9a53141d439f894ddbd58a8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 22 Jul 2024 18:41:04 -0600 Subject: [PATCH] Gwuh --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)