Repository navigation
Installation EN
The command-line bot and the farm are installed the same way.
-
Python 3.10 or newer. Check the version with
python3 --version. - Git, to download the project and update it later.
- For the farm, a computer or server that stays on: Linux (best), Windows or macOS. The weakest mini PC is enough: the farm spends almost all of its time waiting.
git clone https://github.com/PalmaLuv/SteamGiftBot.git
cd SteamGiftBot
python3 -m venv env
source env/bin/activate
pip install -r requirements.txtenv is a virtual environment: dependencies go into it, not into the system.
From then on, run every command either after source env/bin/activate or
directly through env/bin/python, for example env/bin/python -m steamgiftbot.farm.
git clone https://github.com/PalmaLuv/SteamGiftBot.git
cd SteamGiftBot
py -m venv env
env\Scripts\activate
pip install -r requirements.txtIf you only need SteamGifts, you can skip installation entirely and download a
ready-made SteamGiftBot.exe from the releases.
See Command-line bot for details.
The ghcr.io/palmaluv/steamgiftbot image runs the command-line bot:
docker run --rm -e STEAMGIFTBOT_COOKIE=your_PHPSESSID ghcr.io/palmaluv/steamgiftbotThe farm can run in Docker too if you override the command. The --data
option moves farm.json, config.ini, the history and the logs into a
separate folder. Mount it as a volume, or everything disappears together with
the container:
docker run --rm -it -v botfarm:/data --entrypoint python ghcr.io/palmaluv/steamgiftbot \
-m steamgiftbot.farm --data /data --set-password
docker run -d --name botfarm --restart unless-stopped \
-p 192.168.1.10:8092:8092 -v botfarm:/data \
--entrypoint python ghcr.io/palmaluv/steamgiftbot \
-m steamgiftbot.farm --data /data --host 0.0.0.0The first command sets the panel password once; the second starts the farm.
Listening on
0.0.0.0inside the container is fine: only-plets the port out. Put your network address in-p(192.168.1.10:8092:8092), not just a port, otherwise the panel becomes reachable on every address of the computer.
Instead of --data you can set the BOTFARM_DATA environment variable. The
password can be passed in BOTFARM_PASSWORD; then --set-password asks
nothing.
cd SteamGiftBot
git pull
env/bin/pip install -r requirements.txt
sudo systemctl restart botfarm # if the farm runs as a serviceSettings, cookies and history live in farm.json, config.ini and
botfarm-state.json. These files are not part of the repository, so
git pull does not touch them.
- First farm run
- Server and service: autostart, firewall, Tailscale
SteamGiftBot · лицензия MPL-2.0 · нашли ошибку в вики? Откройте issue в репозитории. Found a mistake in the wiki? Open an issue in the repository.
🇷🇺 Русский
Начало
Площадки
Панель
Связь
Сервер
Справка
🇬🇧 English
Getting started
Sites
Panel
Connections
Server
Reference