mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 22:24:58 +05:00
test
This commit is contained in:
parent
9460ce4b31
commit
3afbdefc85
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ const CronJob = require("cron").CronJob,
|
|||
Discord = require("discord.js");
|
||||
|
||||
async function init(client) {
|
||||
new CronJob("0 12 23 * * *", async function () {
|
||||
new CronJob("0 13 23 * * *", async function () {
|
||||
client.guilds.cache.forEach(async (guild) => {
|
||||
const date = new Date();
|
||||
const currentMonth = date.getMonth() + 1;
|
||||
|
@ -18,7 +18,7 @@ async function init(client) {
|
|||
.find({ birthdate: { $gt: 1 } })
|
||||
.then(async (users) => {
|
||||
for (const user of users) {
|
||||
console.log(user.birthdate)
|
||||
console.log(new Date(user.birthdate))
|
||||
const month = user.birthdate.getUTCMonth() + 1;
|
||||
const day = user.birthdate.getUTCDate();
|
||||
if (currentMonth === month && currentDay === day) {
|
||||
|
|
Loading…
Reference in a new issue