adjust banme

This commit is contained in:
HF 2022-09-23 16:32:05 +02:00
parent f49bb42578
commit a6b9c6099d
2 changed files with 5 additions and 3 deletions

View File

@ -29,8 +29,10 @@ const GlobalCaptcha = ({ close }) => {
}
// ----
const test = document.getElementById('void-bot');
if (!legit || test) {
await requestBanMe((legit) ? 1 : 2);
if (test) {
await requestBanMe(1);
} else if (!legit) {
await requestBanMe(2);
}
// ----
const captchaid = e.target.captchaid.value;

View File

@ -17,7 +17,7 @@ async function banme(req, res) {
let expires = 0;
if (code === 1) {
reason = 'Userscript Bot';
expires = Date.now() + 1000 * 3600 * 24 * 7;
expires = Date.now() + 1000 * 3600 * 24 * 3;
/*
* ignore it for now to collect data manually
*