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.
- 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.
- Core: Python 3.10+,
pyautogui,pywebview. - UI: HTML5, CSS3 (Vanilla), JavaScript (Vanilla).
- Build: PyInstaller, GitHub Actions.
-
Clone the repository:
git clone https://github.com/catgirl3d/game_antiafk_bot.git cd game_antiafk_bot -
Install dependencies:
pip install -r requirements.txt
-
Run:
python main.py
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.
If you want to build the executable yourself:
pyinstaller --clean --noconfirm game_antiafk_bot.specThe result will appear in the dist/ folder.
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.
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
- 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