From 9f71e73862ddc89f8b1de40ed6c77c232408036b Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Sat, 12 Feb 2022 18:53:19 +0100 Subject: [PATCH] Update main.js --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index bf1b7a5..ee54585 100755 --- a/main.js +++ b/main.js @@ -40,7 +40,9 @@ client.once('ready', () => { if (client.user.username != 'MOOver Debug') { client.channels.cache.get('780439236867653635').send('Just turned on!'); } - cron.schedule('0 13 * * *', pingEvent()); + cron.schedule('0 13 * * *', async function() { + pingEvent(); + }); console.log('Running!'); });