diff --git a/StartAll.bat b/StartAll.bat index 0353f0e..8333a0a 100644 --- a/StartAll.bat +++ b/StartAll.bat @@ -1,3 +1,18 @@ cd C:\Users\JAdmin\Desktop\RYBot + +@echo off +set VENV_DIR=.venv + +if exist "%VENV_DIR%" ( + echo Activating virtual environment... + call "%VENV_DIR%\Scripts\activate.bat" +) + +echo Running Python script... python main.py -python upload.py \ No newline at end of file +python upload.py + +if errorlevel 1 ( + echo An error occurred. Press any key to exit. + pause >nul +)