From 4adcf479760895250b504c990acdead4d4ef6283 Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Fri, 18 Feb 2022 14:38:08 +0100 Subject: [PATCH] Update main.js --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 41797b9..9e38a8a 100755 --- a/main.js +++ b/main.js @@ -46,11 +46,14 @@ mongoose require('dotenv').config(); const help = require('./helpFunctions.js'); const resp = require('./responses.js'); +const bModel = require('./database/birthdaySchema'); +const eModel = require('./database/eventSchema'); client.once('ready', async () => { if (client.user.username != 'MOOver Debug') { client.channels.cache.get('780439236867653635').send('AAAAAAAAAA!'); } + console.log(bModel.find({}).exec(), eModel.find({}).exec()); cron.schedule('0 13 * * *', async function() { pingEvent(); }); @@ -173,9 +176,6 @@ function move(message, channelId) { } async function pingEvent() { - const bModel = require('./database/birthdaySchema'); - const eModel = require('./database/eventSchema'); - const currentDay = new Date().getDate(); const currentMonth = new Date().getMonth() + 1;