Gwuh
This commit is contained in:
parent
2d86399900
commit
59ea62481b
7
index.js
7
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)
|
||||
|
|
Loading…
Reference in a new issue