first commit

This commit is contained in:
gosangam
2026-10-18 23:48:22 +05:30
commit 732a06f65d
38 changed files with 8943 additions and 0 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/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}"