Teamfight Tactics / TFT bot for the mobile version. Farms pass experience, events, and tokens.
Table of Contents
- Features
- Setup
- Android Emulator
- Bot (executable)
- Bot (source)
- Running
- Emulator
- Bot (executable)
- Bot (source)
- Development
Features
The purpose is to farm the TFT pass experience and League event tokens. The bot is "good enough".
We will never support playing ranked with it. We also do not encourage you to learn from its decisions.
- Uses ADB to be able to support every emulator or phone and runs in the background
- Can start up TFT and queues for normal games
- Buys experience and shop cards
- Rolls and buys augments
- Walks around on carousel rounds
- Capable of surrendering early for faster TFT pass experience
You can find planned and potential future features on our Features wiki page.
The TFT bot is available as a Windows executable for convenience. Running from source is supported as well.
Setup
Android Emulator
- Download any Android emulator you find trustworthy that also has reasonable ADB support.
- Please refer to the wiki page about emulators for more information.
- Install the TFT APK by downloading it from APKMirror and dragging it into your emulator.
- If drag and drop does not work, review your emulator's documentation on how to install APK files.
- While the bot should work with the Google Play version, we discourage using Google Play. It may add overlays the bot does not check for. It is also generally good security practice to not enter your Google credentials in emulators.
- Start the TFT app and log in to your Riot account.
- If you get a warning about needing to try again later, try a linked social log-in (Google, Facebook, Xbox).
Bot (executable)
- Download the latest release.
Bot (source)
- Download and install Python 3.12 for your operating system
- Download and install git for your operating system
- Open a shell of your choice (Defaults: PowerShell on Windows, Zsh on MacOS, Bash on Linux)
- You can verify your python version by running
python --version
.
- Clone this repository:
git clone https://github.com/TeamFightTacticsBots/Alune.git
- Go into the repository:
cd Alune
- Create a virtual Python environment:
python -m venv alune-venv
- Activate the virtual environment.
- PowerShell:
alune-venv\Scripts\Activate.ps1
, Zsh/Bash: alune-venv/bin/activate
- This should put
(alune-venv)
in the front of your shell prompt string.
- Install the project dependencies:
pip install .
- If you want to install for a development environment, use
pip install .[dev]
Running
Emulator
- Make sure your emulator runs and is interactable.
[!NOTE]
While the bot will handle almost any scenario the app may run into, it will never log in for you.
You do not need to start TFT for the bot to be able to run, but it is a good idea to check if you are logged in.
Bot (executable)
- Run the downloaded
Alune.exe
.
The configuration for the bot can be found in the alune-output
folder that's created during the first run.
Logs for bug reports can be found in the logs
folder in that output folder.
Bot (source)
- If not already active, activate the virtual environment - see setup step 7.
- If you use PyCharm or VS Code, you can use the in-built terminal, which does this automatically for you.
- Run
python main.py
Same as with the executable, configuration and logs are in the alune-output
folder.
Development
Linting
The project uses automatic formatting. Use the following lint commands available to you after installation:
black .
isort .
flake8
pylint main.py alune
Compiling
Bundling the project into a .exe can be done with
pyinstaller Alune.spec