Page:
Install da
Pages
Appendix Documentation da
Appendix Documentation ms
Appendix Documentation
Description da
Description ms
Description
Home da
Home ms
Home
Install da
Install ms
Install
Step 1 Open The Game da
Step 1 Open The Game ms
Step 1 Open The Game
Step 2 Click The Cookie da
Step 2 Click The Cookie ms
Step 2 Click The Cookie
Step 3 Read The Count da
Step 3 Read The Count ms
Step 3 Read The Count
Step 4 Buy Upgrades da
Step 4 Buy Upgrades ms
Step 4 Buy Upgrades
Step 5 Five Minute Run da
Step 5 Five Minute Run ms
Step 5 Five Minute Run
Clone
1
Install da
Tirsvad edited this page 2026-10-28 10:04:13 +01:00
Installation
🌐 English · Dansk · Bahasa Melayu
Du skal bruge
- Python 3.13 eller nyere.
- Google Chrome (Selenium Manager henter driveren). Ikke nødvendig til testene.
- Docker, kun for at gentage den headless kørsel og skærmbillederne.
Opret og brug et lokalt .venv
Første blok er til Windows PowerShell, anden til Linux og macOS. Forlad miljøet med deactivate.
python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Kør botten og testene
python -m cookie_clicker_bot
python -m cookie_clicker_bot --headless --duration 60
python -m pytest
Gentag skærmbillederne i Docker
Kørslen er headless, så den tager aldrig din mus eller dit tastatur. Skærmbillederne og steps.json havner i runs/.
docker build -t cookie-clicker-bot -f docker/Dockerfile .
docker run --rm -v "$(pwd)/runs:/runs" cookie-clicker-bot --out /runs