From f2651f8b0713cb6165b9a1b3f52d062168428105 Mon Sep 17 00:00:00 2001 From: Matthieu Pignolet Date: Wed, 9 Apr 2025 19:57:34 +0400 Subject: [PATCH] feat: double the couner reply probability --- discordjs/src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs index 589d75a..08502a0 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -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 || -- 2.39.5