Skip to content

This project, Zanova Bot Status Checker, is a lightweight and efficient solution for monitoring the health and uptime of various Telegram bots. The script periodically checks the status of predefined bots by making HTTP requests to their URLs and updates a Telegram channel with their current status.

License

Notifications You must be signed in to change notification settings

store-x/ONlineJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ ONlineJS - Zanova Bot Status Checker

ONlineJS is a simple JavaScript-based project to monitor the health and uptime of Telegram bots. It performs regular status checks and updates a Telegram channel with the results in real-time.


Features

  • ๐Ÿš€ Automated Bot Monitoring: Regularly checks the status of configured bots.
  • ๐Ÿ“ก Telegram Channel Updates: Sends or edits a message in a Telegram channel with the current bot statuses.
  • ๐Ÿ’ก Customizable: Easily add or modify bots to monitor.

Setup

  1. Clone the repository:

    git clone https://github.com/store-x/ONlineJS.git
    cd ONlineJS
  2. Configure the settings: Open the script file and update the following constants:

    • TELEGRAM_TOKEN: Your Telegram bot's API token.
    • CHANNEL_ID: The Telegram channel ID where updates will be posted.
    • MESSAGE_ID: The message ID for editing (if updating an existing message).
    • bots: Add or edit the list of bots with their name, status check URL, and Telegram link.
  3. Deploy:

    • Recommended to deploy on Cloudflare Workers or similar platforms.
    • For Cloudflare Workers:
      1. Paste the script into the Worker dashboard.
      2. Publish the Worker.
      3. Add a Cron Trigger from the Your newly created Worker > Settings > Triggers section in your Cloudflare dashboard.
        • Set your preferred time interval for periodic status checks.
    • That's it! No further steps are required.

Usage

  • The script automatically runs either on scheduled events or via HTTP fetch.
  • When triggered, it:
    1. Checks each bot's status via HTTP requests.
    2. Formats a detailed status message.
    3. Sends or edits the status message in the configured Telegram channel.

Example Output

โœจ ๐—ญ๐—ฒ๐—ป๐—ผ๐˜ƒ๐—ฎ ๐—•๐—ผ๐˜๐˜€ ๐—ฆ๐˜๐—ฎ๐˜๐˜‚๐˜€ โœจ

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

โžค QUIZORA
โœฆ Status: Alive โšก
   [Click to visit](https://t.me/Quizorabot)

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

โžค LECTURES BOT
โœฆ Status: Offline โ›”
   [Click to visit](https://t.me/JEe_lecture_boT)

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ“… Last Check:
   Date: 17/11/2024
   Time: 11:45 PM

Dependencies

  • Cloudflare Workers (or any serverless JavaScript runtime).

License

MIT License. Feel free to use, modify, and share this project.


Contribution

  • Found a bug? Want to add new features? Fork the repo and create a pull request.

Happy Monitoring! ๐ŸŽ‰

About

This project, Zanova Bot Status Checker, is a lightweight and efficient solution for monitoring the health and uptime of various Telegram bots. The script periodically checks the status of predefined bots by making HTTP requests to their URLs and updates a Telegram channel with their current status.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published