mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix work streaks
This commit is contained in:
parent
937eabf1bd
commit
1896d3e41a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
const toWait = Math.floor((Date.now() + 24 * 60 * 60 * 1000) / 1000); // 24 hours
|
||||||
memberData.cooldowns.work = toWait;
|
memberData.cooldowns.work = toWait;
|
||||||
|
|
Loading…
Reference in a new issue