Coder Social home page Coder Social logo

inigochoa / monitorbot Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 8.0 134 KB

🕵️‍♂️ I am your private bot for web page monitoring. I can check the status of any web page for you.

License: MIT License

Shell 2.97% JavaScript 97.03%
heroku bot monitor telegram telegram-bot private

monitorbot's Introduction

Website monitor telegram bot

GitHub package.json version

⚠️ If you are looking for potsgres version, switch to v1.* branch

What is it?

I am your private bot for web page monitoring. I can check the status of any web page for you. I can also follow a list of URLs and notify you when their status changes.

I am designed to be private. I will only respond to the messages I receive within the chat that you have configured for me.

Available commands

Command Description Parameters
/help Display bot usage info -
/check Check the status of a URL or a list of URLs A URL or a list of URLs separated by a space
/add Add a URL or a list of URLs to the tracking list A URL or a list of URLs separated by a space
/remove Remove a URL or a list of URLs from the tracking list A URL or a list of URLs separated by a space
/list Display the tracking list -
/report Display a report of the tracked URLs -

Usage

Local

  1. Copy default.env to .env
cp default.env .env
  1. Create a new Firebase Firestore database and set the connection values in the .env file. You can read the docs at Google

  2. Configure the telegram variables.

    • TELEGRAM_TOKEN. Write to @BotFather to create a new bot and get its unique token.

    • TELEGRAM_TO. Find out how to get a chat id here.

  3. [Optional] Asign the frequency of the check and report tasks. By default the following values are used:

    • Every minute for the check task.

    • At 10 p.m. for the report task.

    Crontab guru is a great tool for generating crontab schedule expressions.

  4. [Optional] Set the timezone in the .env file to set the task time correctly.

  5. [Optional] I18n.

    1. Duplicate /locales/en.json with the new language code.

    2. Edit the translations respecting the texts in braces.

    3. Write the new language code in the .env file...

Deploying to Heroku

Heroku is a great hosting for this bot as it provides everything you need for free. To carry out the deployment of the project you will need to:

  1. Push the code to a Github repository.

  2. Connect your Heroku and GitHub accounts.

  3. Create a new Heroku app and select GitHub as the deployment method. Choose main branch. Enable Automatic Deploys if you wish.

  4. In the Resources section change the Dyno type from web to worker.

  5. Create the missing environment variables in the Settings section.

Contributing

Please make sure to read the Contributing Guide to learn about our submission process, coding rules and more.

Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.

Supporting

If you are considering supporting the project, you could buy the developer a coffee.

Buy Me A Coffee

monitorbot's People

Contributors

inigochoa avatar

Stargazers

d1n38h avatar vukhaihoan avatar Strong Heart avatar  avatar hadi rickit avatar Jason Leow avatar Raúl Muñoz Navarro avatar Tej Pochiraju avatar  avatar Nitin Khanna avatar

Watchers

 avatar Raúl Muñoz Navarro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.