mirror of
https://github.com/ershisan99/scrape-icp.git
synced 2025-12-18 12:33:56 +00:00
rollback
This commit is contained in:
@@ -116,10 +116,10 @@ const scrape = async () => {
|
|||||||
await browser?.close?.()
|
await browser?.close?.()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const cronTask = cron.schedule('*/1 * * * *', async () => {
|
const cronTask = cron.schedule('*/1 9-17 * * *', async () => {
|
||||||
await scrape()
|
await scrape()
|
||||||
})
|
})
|
||||||
console.log('valid: ', cron.validate('*/1 * * * *'))
|
console.log('valid: ', cron.validate('*/1 9-17 * * *'))
|
||||||
bot.on(message('text'), async (ctx) => {
|
bot.on(message('text'), async (ctx) => {
|
||||||
const text = ctx.message?.text
|
const text = ctx.message?.text
|
||||||
if (ctx.message.from.id !== Number(process.env.MY_TELEGRAM_ID)) return
|
if (ctx.message.from.id !== Number(process.env.MY_TELEGRAM_ID)) return
|
||||||
|
|||||||
Reference in New Issue
Block a user