feat: double the couner reply probability

This commit is contained in:
matthieu 2025-04-09 19:57:34 +04:00
parent f14f90c141
commit f2651f8b07

View file

@ -82,7 +82,7 @@ const messageAction = async (message, ctx) => {
let shouldReplyByTimestamp = currentTimestamp - lastMessageTimestamp >= 3600000;
let shouldReplyByCounter =
messageReplyCounter >= Math.floor(Math.random() * 75) + 35;
messageReplyCounter * 2 >= Math.floor(Math.random() * 75) + 35;
let shouldReply = (
(ctx === SYMBOL_FOR_CREATE && shouldReplyByTimestamp) ||
shouldReplyByCounter ||