set to 20s
This commit is contained in:
parent
58b8673454
commit
56ad4aa068
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ export function setUpAntiBot() {
|
||||||
const randomNumber2 = Math.floor(Math.random() * 10) + 1;
|
const randomNumber2 = Math.floor(Math.random() * 10) + 1;
|
||||||
const randomNumber3 = 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}
|
${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);
|
await ctx.banChatMember(newMember.id);
|
||||||
pendingVerificationUsers.splice(index, 1);
|
pendingVerificationUsers.splice(index, 1);
|
||||||
}
|
}
|
||||||
}, 60000);
|
}, 20000);
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.on("left_chat_member", (ctx) => {
|
bot.on("left_chat_member", (ctx) => {
|
||||||
|
|
Loading…
Reference in a new issue