From dab1b72702500db10f6cdd222c5f1039c4d23aa3 Mon Sep 17 00:00:00 2001 From: andres Date: Tue, 14 Mar 2023 02:31:40 +0100 Subject: [PATCH] rollback --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 39efb22..c7d7853 100644 --- a/src/index.ts +++ b/src/index.ts @@ -116,10 +116,10 @@ const scrape = async () => { await browser?.close?.() } } -const cronTask = cron.schedule('*/1 * * * *', async () => { +const cronTask = cron.schedule('*/1 9-17 * * *', async () => { await scrape() }) -console.log('valid: ', cron.validate('*/1 * * * *')) +console.log('valid: ', cron.validate('*/1 9-17 * * *')) bot.on(message('text'), async (ctx) => { const text = ctx.message?.text if (ctx.message.from.id !== Number(process.env.MY_TELEGRAM_ID)) return