Tested on:
- Ubuntu 20.04 LTS
- Resolution: 1920x1080px
- Install Dota2-Autoaccepter
- In DotA enable "Bring Dota 2 to front when match found" setting (Options > Advanced Options)
- Start the Autoaccepter:
./dota2_autoaccepter
- Automatically accept a game when one is found.
- Click "READY" during party ready check.
- Cross-platform: Works on Windows too
The script takes a screenshot every 3 seconds.
It looks for the pattern of the accept button.
If the threshold requirements are exceeded, the script presses ENTER
.
The templates (pictures of the edges of the accept button) are located in templates/
directory.
- Python 3.x
- Pip (Python package installer)
```bash
git clone https://github.com/zwoefler/Dota2-Autoaccepter.git
cd Dota2-Autoaccepter
# Create Virtual Environment
python3 -m venv Env
source Env/bin/activate
# Install Requirements
pip install -r requirements.txt
# Run Autoaccepter
python -m autoaccepter
```
python3 -m unittest discover -s tests
source Env/bin/activate
pip install pyinstaller
pyinstaller --onefile --add-data "templates:templates" --hidden-import=argparse --name=autoaccepter autoaccepter/main.py
cp dist/autoaccepter
MIT License - see the LICENSE file for details.