From d6b325fb5d7770e1c0307caa6886d0faebee8c92 Mon Sep 17 00:00:00 2001 From: YatharthDedhia Date: Sun, 23 Oct 2022 19:52:43 +0530 Subject: [PATCH] Updated scheduled timezone from GMT to IST --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c2bbd21..ea612ac 100644 --- a/src/index.js +++ b/src/index.js @@ -57,7 +57,12 @@ cron.schedule('00 12 * * 7', function () { const channel = client.channels.cache.get( process.env.CHANNEL_ID_ANNOUNCEMENTS ); + channel.send( `Update time <@&${process.env.ROLE_ID_MENTEES}>! Provide your weekly updates to your respective mentors.` ); -}); +}, + { + scheduled: true, + timezone: "Asia/Calcutta" + });