Files
gravity_control/start_bot.bat
Variet Worker e7631177f8 refactor(cleanup): v0.5.0 Collector 제거 + dead code 정리 + HttpBridgeContext 버그 수정
- DELETE collector.py (523줄)
- main.py: BOT_MODE=remote 분기 제거
- gateway.py: Collector REST 6개 endpoint 제거 (311→168줄)
- bridge.py: RemoteTransport 제거 (480→270줄)
- config.py: REMOTE_BRIDGE_URL 제거
- extension.ts: dead code 4개 + stale module vars 제거
- step-probe.ts: getStepProbeContext() 추가, autoApproveEnabled 제거
- FIX: HttpBridgeContext stale primitive (getter 패턴으로 수정)
- ADD: extension.log rotation (10MB→2MB tail)
- docs: architecture.md, tech-stack.md, known-issues.md 업데이트
2026-03-18 11:08:59 +09:00

64 lines
1.8 KiB
Batchfile

@echo off
chcp 65001 >nul 2>&1
title Gravity Bridge Bot
echo ╔══════════════════════════════════════╗
echo ║ Gravity Bridge Bot Launcher ║
echo ╚══════════════════════════════════════╝
echo.
echo [INFO] 로컬 테스트 (BOT_MODE=local)를 시작합니다.
echo [INFO] 서버 배포는 BOT_MODE=gateway로 실행하세요.
echo.
echo 시작하려면 아무 키나 누르세요...
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