set to 20s

This commit is contained in:
nin0dev 2024-12-29 18:16:43 -05:00
parent 58b8673454
commit 56ad4aa068
Signed by: nin0
SSH key fingerprint: SHA256:Is2DvJdw1OkSopR4wKJfdWV0fZhMLxpnCs1P1nPhIgA

View file

@ -15,7 +15,7 @@ export function setUpAntiBot() {
const randomNumber2 = Math.floor(Math.random() * 10) + 1;
const randomNumber3 = Math.floor(Math.random() * 10) + 1;
await ctx.reply(`Hi ${newMember.first_name}! As part of our anti-bot protection, you will have to answer the following math challenge within a minute:
await ctx.reply(`Hi ${newMember.first_name}! As part of our anti-bot protection, you will have to answer the following math challenge within the next 20 seconds:
${randomNumber1} * ${randomNumber2} + ${randomNumber3}
@ -35,7 +35,7 @@ Simply send the answer to the challenge in chat to get verified. If you do not d
await ctx.banChatMember(newMember.id);
pendingVerificationUsers.splice(index, 1);
}
}, 60000);
}, 20000);
});
bot.on("left_chat_member", (ctx) => {