Skip to content

catgirl3d/game_antiafk_bot

Repository files navigation

🤖 Anti-AFK Bot

English | Українська | Русский

Anti-AFK Bot is a simple and elegant solution to prevent automatic disconnection (AFK) in games and applications. Built with Python and modern web technologies for the interface.

Latest Release Python

✨ Features

  • Multi-Key Support: Configure multiple keys to be pressed randomly.
  • Random Intervals: Set min/max intervals for natural timing variations.
  • Adjustable Durations: Control key press duration for realistic behavior.
  • Micro Movements: Optional subtle cursor movements to simulate activity.
  • Random Clicks: Optional random mouse clicks for enhanced anti-detection.
  • Autosave: Remembers your settings and window position.
  • Stats: Shows the number of presses and active time.
  • Always on Top: Can be pinned above other windows.
  • Minimalist: Small window without extra borders.

🛠 Tech Stack

  • Core: Python 3.10+, pyautogui, pywebview.
  • UI: HTML5, CSS3 (Vanilla), JavaScript (Vanilla).
  • Build: PyInstaller, GitHub Actions.

🚀 Quick Start

From source code:

  1. Clone the repository:

    git clone https://github.com/catgirl3d/game_antiafk_bot.git
    cd game_antiafk_bot
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run:

    python main.py

📦 Build EXE

The project is configured for automatic builds via GitHub Actions. Creating a new tag (e.g., v1.0.0) automatically creates a Release with the .exe file.

Local build:

If you want to build the executable yourself:

pyinstaller --clean --noconfirm game_antiafk_bot.spec

The result will appear in the dist/ folder.

⚙️ Key Configuration

The bot supports both single characters and special keys:

  • space, f1, f12, shift, ctrl, alt, enter, etc.
  • Full list of supported names matches the PyAutoGUI library.

Multiple Keys

You can enter multiple keys separated by commas. The bot will randomly select one key from the list each time it performs an action:

  • Example: space, w, a, s, d - randomly presses movement keys
  • Example: f1, f2, f3 - randomly presses function keys

Advanced Settings

  • Interval Min/Max: Set the range for random delays between actions (seconds)
  • Press Duration Min/Max: Control how long each key is held (milliseconds)
  • Randomize: Enable random selection of intervals and durations
  • Micro Movements: Add subtle cursor movements for more natural behavior
  • Random Clicks: Occasionally perform random mouse clicks