-
Notifications
You must be signed in to change notification settings - Fork 40
Bot Installation Setup Guide
fe-art edited this page Nov 8, 2024
·
5 revisions
- Ensure PowerShell (Windows) or Bash (Linux) is ready to use.
- Have administrative access if needed.
- Windows: Open PowerShell.
- Linux: Open Bash.
- Clone the repository using the command:
git clone https://github.com/Pbatch/ClashRoyaleBuildABot.git
Note
Don't install the bot (or anything for that matter) in the system32 folder, the bot won't work properly
- Navigate to the bot directory:
cd ClashRoyaleBuildABot
- Set up a Python virtual environment to manage dependencies:
python -m venv crbab-venv
- Activate the environment to isolate your project:
-
PowerShell (Windows):
crbab-venv\Scripts\Activate.ps1
-
CMD (Windows):
crbab-venv\Scripts\Activate.bat
- This activation will modify your shell prompt to include
(crbab-venv)
.
-
PowerShell (Windows):
- Install the necessary project dependencies:
pip install .[cpu]
If you are confident that your GPU will work with ONNX, then you can use .[gpu]
instead of .[cpu]
.
- For development purposes, install the pre-commit hooks:
pre-commit install
Now, let’s verify that the bot operates correctly:
- Ensure you're in the Clash Royale lobby.
- Start the bot using:
python main.py
- Always ensure your virtual environment
(crbab-venv)
is activated each time you start the bot.