]> git.puffer.fish Git - matthieu/gru.git/commitdiff
change response algorithm
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>
Tue, 9 Jul 2024 10:26:39 +0000 (14:26 +0400)
committerMatthieu Pignolet <matthieu@matthieu-dev.xyz>
Tue, 9 Jul 2024 10:26:39 +0000 (14:26 +0400)
discordjs/src/index.mjs

index 9a37a1f5fcaa84e782fe5ca43168f77ace3ae4f2..b56d6cce98310e736926914891d80acdc21ec8f9 100644 (file)
@@ -52,7 +52,7 @@ const messageAction = async (message) => {
   if (message.author.bot) return;
 
   counter += 1;
-
+  console.log("counter is at", counter);
   let shouldReply = (counter >= 75 || specialChannels.includes(message.channelId) || message.guild == null);
 
   if (shouldReply) {