https://t.me/InitialDCarClassifierBot
!!!Программа изпользует несколько потоков и процессов, так что будьте осторожны!!!
!!!The program uses multiple threads and processes, so be careful!!!
-
Download the bot.
-
Install virtualenv using the command
pip install virtualenv
- Create a virtual environment by running the command in the bot folder
python -m venv env
- In the same folder, we write the command
for Windows:
env\Scripts\activate
for Linux:
source env/bin/activate
- Install all dependencies
pip install -r requirements.txt
-
Configure TelegramConfig and BaseConfig in the file
config.py
, just assign values directly in the script or use environment variables -
Apply migrations for the database
alembic upgrade head
- Run the file
main.py
python main.py
docker build . -t jdm-initial-d
docker run -e "JDM_BOT_TOKEN=<your token>" -it jdm-initial-d