-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
37 lines (31 loc) · 936 Bytes
/
Copy pathstart.bat
File metadata and controls
37 lines (31 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
REM ============================================
REM ARK Discord Bot - Windows Launcher
REM ============================================
REM This script launches the bot securely using
REM credentials from the .env file
REM ============================================
cd /d "%~dp0"
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo.
echo Please install Python 3.8 or higher from:
echo https://www.python.org/downloads/
echo.
pause
exit /b 1
)
REM Check if virtual environment exists
if exist "venv\Scripts\activate.bat" (
echo Activating virtual environment...
call venv\Scripts\activate.bat
)
REM Launch the bot using the secure launcher
python launcher.py
REM Deactivate virtual environment if it was activated
if exist "venv\Scripts\deactivate.bat" (
call venv\Scripts\deactivate.bat
)
pause