#!/usr/bin/env bash # Local convenience launcher: creates a virtualenv, installs dependencies, runs main.py. # Usage: ./start.sh (runs the bot worker) # ./start.sh login (any main.py subcommand) set -euo pipefail cd "$(dirname "$0")" PYTHON="${PYTHON:-python3.12}" if [ ! -d .venv ]; then "$PYTHON" -m venv .venv fi .venv/bin/pip install -q -r requirements.txt if [ ! -f .env ]; then echo "No .env found. Copy .env.example to .env and fill it in first." >&2 exit 2 fi exec .venv/bin/python main.py "${@:-run}"