Files
2026-10-15 14:28:00 +03:00

8 lines
416 B
Bash
Executable File

#!/bin/sh
# LG training bot setup: ./lgbot asks for aim/movement and sets the bot up; ./lgbot --last, show, off.
# Runs inside the container like ./rcon, so the RCON password never leaves this machine.
D=$(cd "$(dirname "$0")" && pwd)
NAME=$(sed -n 's/^QL_NAME=//p' "$D/.env" 2>/dev/null | tr -d '\r')
if [ -t 0 ]; then T=-it; else T=-i; fi
exec docker exec $T "${NAME:-ql-lg}" python3 /ql/tools/lgbot_setup.py "$@"