Telegram bot to verify if a website is up or track an URL to be notified when it gets down. https://t.me/Is_it_UPBot
- Meet IsItUP? at telegram :D
- Clone the project
- Go to directory
cd IsItUP/
- Set an enviroment variable called IS_IT_UP_TOKEN with your telegram token. To learn how to do: read this great article. At bash:
export IS_IT_UP_TOKEN=your_telegram_token
-
(Optional) Setup Firebase. (If you want the track feature)
- Create a Firebase project and download the credentials
- Set environment variables called IS_IT_UP_FIREBASE_PRIVATE_KEY, IS_IT_UP_FIREBASE_CLIENT_EMAIL and IS_IT_UP_FIREBASE_DATABASE_URL with your firebase credentials (private key and client email are in the downloaded file)
export [email protected]
-
(Optional) Setup Botan. If you want to use an analytic for telegram.
- Create a Botan application
- Set an enviroment variable called IS_IT_UP_BOTAN_TOKEN with your botan token.
export IS_IT_UP_BOTAN_TOKEN=your_botan_token
-
Install node and npm
-
Download the dependencies
npm install
- Run the script
npm start
It can be done with IsItUP? bot or your own bot.
- Start a conversation
- Type:
/verify https://telegram.org
or just
https://telegram.org
to verify the availability of one website
- To track an URL, you have to type:
/track https://telegram.org
- To delete an URL from the track list you have to type:
/track_delete
and then click at the URL you want to delete
- To get a list of URLs you are tracking:
/track_list
Every 5 minutes the bot will run a check at track list, if the status of an URL get changed(up->down, down->up), the user will be notified.
-
Invite the bot to a group
-
Call it by name and tell the domain
@Is_it_UPBot https://telegram.org
PS: telegram.org is a sample(of course :D), type whatever you need.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- isitup.org - for the concept
- Node.js Telegram Bot API - for provide an easy way to create a telegram bot