Skip to content

Commit 36bf5ca

Browse files
Extend bump notification time threshold to 5 minutes
Increase the time threshold for bump notifications from 8 seconds to 5 minutes to account for potential delays.
1 parent 53e633a commit 36bf5ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/core/bump.listener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function handleBumpStreak(
8686
// time since last bump
8787
if (lastBumpNotificationTime.getTime() !== 0) {
8888
const timeSinceLastBump = Date.now() - lastBumpNotificationTime.getTime();
89-
if (timeSinceLastBump < 8000) {
89+
if (timeSinceLastBump < 300000) { // this might seem generous, but in reality when you factor in the discord delay, even if you react instantaneously on your screen you can still be too slow
9090
message.channel.send(
9191
`⚡⚡⚡ ${fakeMention(interactionOld.user)} bumped in just **${timeSinceLastBump / 1000}s**!`,
9292
);

0 commit comments

Comments
 (0)