forked from vanhbakaa/Notpixel-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bat
36 lines (31 loc) · 831 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
33
34
35
36
@echo off
if not exist venv (
echo Creating virtual environment...
python -m venv venv
)
echo Activating virtual environment...
call venv\Scripts\activate
if not exist venv\Lib\site-packages\installed (
if exist requirements.txt (
echo installing wheel for faster installing
pip install wheel
echo Installing dependencies...
pip install -r requirements.txt
echo. > venv\Lib\site-packages\installed
) else (
echo requirements.txt not found, skipping dependency installation.
)
) else (
echo Dependencies already installed, skipping installation.
)
if not exist .env (
echo Copying configuration file
copy .env-example .env
) else (
echo Skipping .env copying
)
:loop
python main.py
echo Restarting the program in 2 seconds...
timeout /t 2 /nobreak >nul
goto :loop