From: Matthieu Pignolet Date: Tue, 5 Nov 2024 17:33:21 +0000 (+0400) Subject: Update timestamp X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=65d48b9bcafc75c74440349a347f32e84c619c6b;p=matthieu%2Fgru.git Update timestamp --- diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs index d1b2106..eeea619 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -81,7 +81,7 @@ const messageAction = async (message, ctx) => { .last() .createdTimestamp; - let shouldReplyByTimestamp = currentTimestamp - lastMessageTimestamp >= 3600; + let shouldReplyByTimestamp = currentTimestamp - lastMessageTimestamp >= 3600000; let shouldReplyByCounter = messageReplyCounter >= Math.floor(Math.random() * 75) + 35; let shouldReply = (