#!/bin/bash # ============================================================================ # Run the Signal bot. # # The readme used to say `python main.py`, which did nothing at all: there was # no __main__ block and no uvicorn.run() call anywhere in the project. # ============================================================================ set -euo pipefail REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly REPO_ROOT readonly PYTHON="${PYTHON:-$REPO_ROOT/.venv/bin/python}" main() { if [[ ! -x "$PYTHON" ]]; then echo "Error: no interpreter at $PYTHON" >&2 echo " Run: uv venv .venv && uv pip install -e '.[dev]'" >&2 exit 1 fi exec "$PYTHON" -m signal_bot } main "$@"