From b9d7dfa51c1df4e38ee4c59fde730a9e56ef879c Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 17 Feb 2024 21:34:26 +0500 Subject: [PATCH] fix reminders --- helpers/checkReminds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/checkReminds.js b/helpers/checkReminds.js index 7fd0792a..c96b741f 100644 --- a/helpers/checkReminds.js +++ b/helpers/checkReminds.js @@ -16,7 +16,7 @@ module.exports.init = function (client) { const cachedUser = client.users.cache.get(user.id); if (cachedUser) { - const dateNow = Date.now(), + const dateNow = Math.floor(Date.now() / 1000), reminds = user.reminds, mustSent = reminds.filter(r => r.sendAt < dateNow);