forked from Anonym0us33/PygDiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
32 lines (26 loc) · 753 Bytes
/
run.bat
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
@echo off
REM Set the console window size to 80 columns by 25 lines
mode con lines=25
REM Check if .env file exists
if not exist .env (
@echo on
cls
@echo.
@echo.
@echo.
echo *********************************************************************
echo Error: .env file not found
echo Please configure sample.env with your parameters and save it as .env
echo *********************************************************************
@echo.
@echo.
pause
exit /b 1
)
REM Activate the virtual environment
call venv\Scripts\activate.bat
REM Run the Python script with the environment variables as arguments
python discordbot.py
REM Deactivate the virtual environment
call venv\Scripts\deactivate.bat
pause