From 1896d3e41ac6918a536c6b43ad07e544b4ddd23a Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 21 May 2024 22:38:43 +0500 Subject: [PATCH] fix work streaks --- commands/Economy/work.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Economy/work.js b/commands/Economy/work.js index a3e461c4..6ae16297 100644 --- a/commands/Economy/work.js +++ b/commands/Economy/work.js @@ -37,7 +37,7 @@ class Work extends BaseCommand { }); } - if (Date.now() > memberData.cooldowns.work + 24 * 60 * 60 * 1000) memberData.workStreak = 0; + if (Date.now() > Math.floor(memberData.cooldowns.work + 24 * 60 * 60 * 1000) / 1000) memberData.workStreak = 0; const toWait = Math.floor((Date.now() + 24 * 60 * 60 * 1000) / 1000); // 24 hours memberData.cooldowns.work = toWait;