- Docker & Docker Compose (production) or Python 3.11+ (development)
- Telegram Bot Token from @BotFather
- Redis (optional, can be disabled)
git clone <repository-url>
cd scoutbot
cp .env.example .env
# Edit .env: set BOT_TOKEN
docker-compose up -d --buildVerify:
docker-compose ps
curl http://localhost:8916/health
docker-compose logs -f scoutbotTest:
- Open Telegram, find your bot
- Send
/start - Send
/ping
git clone <repository-url>
cd scoutbot
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
# Edit .env: set BOT_TOKEN, DATABASE_URL, DISABLE_REDIS=true
python run.pyRequired:
BOT_TOKEN- Telegram bot token
Optional:
ENABLE_FFMPEG=true- Video/audio processingENABLE_ARIA2=false- Faster direct downloadsDISABLE_REDIS=true- Disable Redis (local dev)
See CONFIGURATION.md for all options.
Docker: Automatically included, no setup needed.
Local:
# Ubuntu/Debian
sudo apt-get install redis-server
# macOS
brew install redis
# Start
redis-serverUpdate .env:
REDIS_HOST=localhost
REDIS_PORT=6379
DISABLE_REDIS=falseContainers fail to start:
- Check Docker is running:
docker ps - Check port 8916 is free:
netstat -an | grep 8916 - View logs:
docker-compose logs scoutbot
Bot not responding:
- Verify
BOT_TOKENis correct - Check logs for errors
- Test with
/pingcommand
Import errors (local):
- Verify venv is activated
- Reinstall:
pip install -r requirements.txt --force-reinstall