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) => {