#!/bin/bash # Lichess Telegram Bot Runner Script echo "🎯 Lichess Telegram Bot" echo "======================" # Check if Docker is running if ! docker info > /dev/null 2>&1; then echo "❌ Docker is not running. Please start Docker first." exit 1 fi # Check if the API service is running echo "🔍 Checking Lichess API service..." if curl -s http://localhost:8002/docs > /dev/null 2>&1; then echo "✅ Lichess API service is running on http://localhost:8002" else echo "⚠️ Warning: Lichess API service is not accessible at http://localhost:8002" echo " Make sure your API service is running before starting the bot." fi echo "" echo "🚀 Starting Lichess Telegram Bot..." # Build and start the bot docker-compose up --build -d echo "" echo "✅ Bot started successfully!" echo "" echo "📊 To view logs:" echo " docker-compose logs -f lichess-bot" echo "" echo "🛑 To stop the bot:" echo " docker-compose down" echo "" echo "🔧 To restart the bot:" echo " docker-compose restart lichess-bot" echo "" echo "📱 Your bot is now running! Find it in Telegram and start chatting."