fix reminders

This commit is contained in:
Jonny_Bro (Nikita) 2024-02-17 21:34:26 +05:00
parent 8766a10469
commit b9d7dfa51c
No known key found for this signature in database
GPG key ID: 391C19BE62D36B33

View file

@ -16,7 +16,7 @@ module.exports.init = function (client) {
const cachedUser = client.users.cache.get(user.id); const cachedUser = client.users.cache.get(user.id);
if (cachedUser) { if (cachedUser) {
const dateNow = Date.now(), const dateNow = Math.floor(Date.now() / 1000),
reminds = user.reminds, reminds = user.reminds,
mustSent = reminds.filter(r => r.sendAt < dateNow); mustSent = reminds.filter(r => r.sendAt < dateNow);