Skip to content

A Battlefield tracking script for the mobile game Cat Hero

Notifications You must be signed in to change notification settings

keyule/Battlefield-Tracker2

Repository files navigation

Battlefield Monitoring Tool Lousy Version

This Python script is designed to monitor and report on battlefield conditions and mob spawns in a specific online game. It connects to the game's API to fetch real-time data about active battlefields, including their ID, region, level and time. The script tracks changes over time and alerts users when new mobs appear.

Features

  • Real-time updates: Automatically fetches and updates battlefield information every 10 minutes.
  • Alert system: Notifies users of new mob spawns that meet specific time and reward criteria.
  • Data presentation: Displays battlefield information in a clear and structured table format.

Screenshot

Requirements

  • Python 3.8 or newer
  • Requests
  • PyTZ
  • Python-dotenv
  • PrettyTable
  • python-telegram-bot

Installation

  1. Clone this repository or download the script to your local machine.
  2. Install the required Python packages:
pip install requests pytz python-dotenv prettytable python-telegram-bot
  1. Ensure that you have the necessary environment variables set. You can do this by creating a .env file in the same directory as the script with the following contents:
DISCORD_WEBHOOK=your_webhook_url
DISCORD_ALERTS_ENABLED=True

Usage

To run the script, simply execute it from the command line:

python battlefield.py -token YOUR_BEARER_TOKEN_HERE

For detailed instructions on how to obtain the BEARER_TOKEN, refer to our Guide on Obtaining the Bearer Token. This guide provides step-by-step instructions to capture the necessary token through network interception using tools like BlueStacks and HTTP Toolkit.

Note: The Bearer Token will expire and is needed to be changed daily, so you will have to do all those steps everyday. When you get an error and the thing stops running, means its time to change your token.

About

A Battlefield tracking script for the mobile game Cat Hero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages