-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.bat
43 lines (36 loc) · 970 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
37
38
39
40
41
42
43
@echo off
title Qlyuker
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
)
::Обновление локального репозитория без удаления изменений
git stash
git pull
git stash pop
echo Starting the bot...
python main.py
echo done
echo PLEASE EDIT .ENV FILE
pause