-
Notifications
You must be signed in to change notification settings - Fork 4
/
run.bat
37 lines (32 loc) · 829 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
@echo off
title CatsGangBot
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
)
echo Starting the bot...
python main.py
echo done
echo PLEASE EDIT .ENV FILE
pause