summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Pignolet <m@mpgn.dev>2025-04-19 22:41:30 +0400
committerMatthieu Pignolet <m@mpgn.dev>2025-04-19 22:41:30 +0400
commita12a7ba11e99171c97edaa4f68d45d92f9ff6255 (patch)
tree15e4447a0fb7efbc6c893fc5427856be71b19a85
parenta452845ec82444a31a10fc54c11e34f9fd335ce7 (diff)
Revert "feat: double the couner reply probability"
This reverts commit f2651f8b0713cb6165b9a1b3f52d062168428105.
-rw-r--r--discordjs/src/index.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs
index 08502a0..589d75a 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 * 2 >= Math.floor(Math.random() * 75) + 35;
+ messageReplyCounter >= Math.floor(Math.random() * 75) + 35;
let shouldReply = (
(ctx === SYMBOL_FOR_CREATE && shouldReplyByTimestamp) ||
shouldReplyByCounter ||