This commit is contained in:
Christopher Cookman 2024-07-22 18:41:04 -06:00
parent 2d86399900
commit 59ea62481b
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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)