- Install dependencies:
uv sync- Configure
.env:
TOKEN=your_bot_token
MONGODB_URI=mongodb://127.0.0.1:27017/
DB_NAME=mongoDB
COLLECTION_NAME=local- Start the bot:
uv run python bot.pyUse these as the canonical project commands:
# Update lockfile after dependency changes
uv lock
# Sync environment from pyproject.toml + uv.lock
uv sync
# Run the bot with the project environment
uv run python bot.pyPlease make sure you run these commands before pushing
# Ruff Check
uvx ruff check . --fix
# PyRight Check
uv run pyright .
If TOKEN is missing, the bot now exits with a clear startup message.