diff options
| author | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-11-05 21:33:21 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 21:33:21 +0400 |
| commit | 65d48b9bcafc75c74440349a347f32e84c619c6b (patch) | |
| tree | 96fb3dc8157d08bd528600f3a92021c701f92d98 | |
| parent | 673e8f5b8038bd4e61d10bc3c9c3f43772e3b588 (diff) | |
Update timestamp
| -rw-r--r-- | discordjs/src/index.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
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 = ( |
