@IsBotDownBot code
Code of the bot that tracks the up and down status of other bots.
- Clone this repo:
git clone https://github.com/backmeupplz/IsBotDownBot
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
TOKEN
— Telegram bot tokenMONGO
— URL of the mongo databaseTELEGRAM_API_ID
— see the docsTELEGRAM_API_HASH
— see the docsPORT
— port to run the backend on (defaults to1337
)
Also, please, consider looking at .env.sample
.
You can also access API at https://backend.isbotdown.com. Available routes are:
Returns a paginated list of bots with their statuses.
Returs the status of the bot with the given username. You can pass usernames with or without the @
prefix.
Returns audience info from @TrueCheckerBot and @botspulsebot.
main
branch get automatically deployed to @IsBotDownBot via ci-ninja.
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!