Skip to content

๐ŸŽ‰ AGSA Status Checker Bot - The AGSA Status Bot is a sophisticated PHP-based solution for monitoring AG-SA player statuses through Bale messenger. This release brings real-time status monitoring with instant notifications, making it easier than ever to track player activity

License

Notifications You must be signed in to change notification settings

mixtrus/AGSA-SC-BB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AGSA Status Bot for Bale Messenger ๐Ÿค–

A powerful and efficient PHP bot that monitors AG-SA player status and delivers real-time notifications through Bale messenger. Perfect for gaming communities who want to track player statuses automatically.

Bale Bot License PHP Version

โœจ Features

  • ๐Ÿ”„ Real-time status monitoring
  • ๐Ÿ”” Instant notifications on status changes
  • ๐Ÿ“Š Status image visualization
  • ๐Ÿ‘ฅ Multi-user subscription system
  • ๐Ÿ›ก๏ธ Robust error handling
  • ๐Ÿ“ Detailed logging system

๐Ÿš€ Getting Started

Prerequisites

  • PHP 7.4 or higher
  • cPanel hosting or any PHP web hosting
  • GD Library enabled in PHP
  • Bale Bot Token (get from @BotFather on Bale)

Installation

  1. Clone the repository
git clone https://github.com/yourusername/agsa-status-bot.git
  1. Upload files to your web hosting
โ”œโ”€โ”€ config.php
โ”œโ”€โ”€ functions.php
โ”œโ”€โ”€ webhook.php
โ”œโ”€โ”€ check_status.php
โ””โ”€โ”€ README.md
  1. Create necessary files with proper permissions
touch subscribers.json last_status.txt bot_log.txt
chmod 666 subscribers.json last_status.txt bot_log.txt
  1. Configure your bot
  • Edit config.php with your settings:
define('BOT_TOKEN', 'YOUR_BALE_BOT_TOKEN');
define('ACCOUNT_NAME', 'YOUR_ACCOUNT_NAME');
  1. Set up webhook
https://api.bale.ai/bot{BOT_TOKEN}/setWebhook?url=https://your-domain.com/path-to/webhook.php
  1. Add cron job in cPanel
* * * * * php /home/username/public_html/path-to/check_status.php

๐ŸŽฎ Usage

Bot Commands

  • /start - Subscribe to status updates
  • /stop - Unsubscribe from updates
  • /status - Check current status
  • /help - Show help message

Status Indicators

  • ๐ŸŸข Online
  • ๐ŸŸ  Sleep
  • ๐Ÿ”ด Offline

๐Ÿ› ๏ธ Technical Details

The bot uses:

  • PHP GD library for image processing
  • Bale.ai Bot API for messaging
  • File-based storage for subscribers and status
  • Cron job for automated monitoring

๐Ÿ“ Logging

The bot maintains detailed logs in bot_log.txt:

  • Status checks
  • API responses
  • Subscriber management
  • Error tracking

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Special thanks to Ramtin for the original concept
  • AG-SA community for inspiration
  • Bale messenger platform for the API

๐Ÿ“ž Support

If you have any questions or need help, feel free to:


Made with โค๏ธ for the AG-SA Community

About

๐ŸŽ‰ AGSA Status Checker Bot - The AGSA Status Bot is a sophisticated PHP-based solution for monitoring AG-SA player statuses through Bale messenger. This release brings real-time status monitoring with instant notifications, making it easier than ever to track player activity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages