@echo off chcp 65001 >nul 2>&1 title Gravity Bridge Bot echo ╔══════════════════════════════════════╗ echo ║ Gravity Bridge Bot Launcher ║ echo ╚══════════════════════════════════════╝ echo. echo [WARN] 로컬 Collector (BOT_MODE=remote)는 더 이상 필요하지 않습니다. echo [WARN] Extension이 WebSocket으로 Hub에 직접 연결합니다. echo [WARN] 서버에서 Docker로 실행하세요: docker compose up -d echo. echo 로컬 테스트 (BOT_MODE=local)를 원하시면 아무 키나 누르세요... pause >nul REM — Find Python (conda first, then system) set PYTHON= if exist "C:\ProgramData\miniforge3\envs\gravity_control\python.exe" ( set PYTHON=C:\ProgramData\miniforge3\envs\gravity_control\python.exe ) if "%PYTHON%"=="" ( where python >nul 2>&1 && set PYTHON=python ) if "%PYTHON%"=="" ( echo [ERROR] Python not found. Install Python 3.10+ or set path. pause exit /b 1 ) REM — Check .env if not exist "%~dp0.env" ( echo [SETUP] .env not found. Creating from .env.example... if exist "%~dp0.env.example" ( copy "%~dp0.env.example" "%~dp0.env" >nul echo [SETUP] .env created — edit it with your Discord token and Guild ID. echo. notepad "%~dp0.env" echo Press any key after saving .env... pause >nul ) else ( echo [ERROR] .env.example not found. pause exit /b 1 ) ) REM — Install dependencies (first run) if not exist "%~dp0.deps_installed" ( echo [SETUP] Installing dependencies... %PYTHON% -m pip install -r "%~dp0requirements.txt" -q echo. > "%~dp0.deps_installed" echo [SETUP] Dependencies installed. ) echo [START] Starting bot with %PYTHON%... echo [START] Press Ctrl+C to stop. echo. %PYTHON% "%~dp0main.py" echo. echo [STOP] Bot stopped. pause