From 56ad4aa068b3f3e070eb4949b274a87033ea579d Mon Sep 17 00:00:00 2001 From: nin0dev Date: Sun, 29 Dec 2024 18:16:43 -0500 Subject: [PATCH] set to 20s --- src/modules/antiBot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/antiBot.ts b/src/modules/antiBot.ts index a9c3837..c9a829e 100644 --- a/src/modules/antiBot.ts +++ b/src/modules/antiBot.ts @@ -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) => {