Template to create bot's that send you notification based on cronjob
- Deploy it on Cloudflare Workers platform via
pnpm run deploy
. - Don't forget to define
BOT_TOKEN
andCHAT_ID
secret variables via Cloudflare Dashboard
You can find CHAT_ID
using this guide.
- Fill secret variables into
.dev.vars
in dotenv format. - Run
pnpm run dev
and go tohttp://localhost:8000/__scheduled?cron=*+*+*+*+*
to trigger cronjob.