]> git.puffer.fish Git - matthieu/gru.git/commitdiff
Revert "feat: double the couner reply probability" main
authorMatthieu Pignolet <m@mpgn.dev>
Sat, 19 Apr 2025 18:41:30 +0000 (22:41 +0400)
committerMatthieu Pignolet <m@mpgn.dev>
Sat, 19 Apr 2025 18:41:30 +0000 (22:41 +0400)
This reverts commit f2651f8b0713cb6165b9a1b3f52d062168428105.

discordjs/src/index.mjs

index 08502a038d1fa5aff3d38ee3e858591966a077c2..589d75ad9b0d17092fef2cb1fb857bf0e1851317 100644 (file)
@@ -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 ||