-
Create your bot with @BotFather
-
Add commands
/start
and/stop
to your bot -
Update
.env
variables:TELEGRAM_BOT_TOKEN
- provided by@BotFather
when the bot is createdMONITORING_URL
- the URL of the service you need termin for. Tested on this one.HOURS
- the time of the day when script should be monitoring:[start, end]
. Default is[6, 19]
. Change to[]
for 24hr monitoring.
-
Install deps
> yarn
- Start the script
> yarn start
- Send
/start
to the chat with your bot to start monitoring. - Send
/stop
to the chat with your bot to stop monitoring.
The script will run with a random interval in range of 2 to 7 minutes. As soon as the available date will appear in the calendar, the bot will notify you.