mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
fix reminders
This commit is contained in:
parent
8766a10469
commit
b9d7dfa51c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue