Skip to content

move-fast-and-break-things/JDM-initial-d-classification

Repository files navigation

JDM Initial D Car Classifier Bot

Check It In Action

https://t.me/InitialDCarClassifierBot

Running It Locally

!!!Программа изпользует несколько потоков и процессов, так что будьте осторожны!!!

!!!The program uses multiple threads and processes, so be careful!!!

Installation

  1. Download the bot.

  2. Install virtualenv using the command

pip install virtualenv
  1. Create a virtual environment by running the command in the bot folder
python -m venv env
  1. In the same folder, we write the command

for Windows:

env\Scripts\activate

for Linux:

source env/bin/activate
  1. Install all dependencies
pip install -r requirements.txt
  1. Configure TelegramConfig and BaseConfig in the file config.py, just assign values directly in the script or use environment variables

  2. Apply migrations for the database

alembic upgrade head
  1. Run the file main.py
python main.py

Or run it with docker

docker build . -t jdm-initial-d
docker run -e "JDM_BOT_TOKEN=<your token>" -it jdm-initial-d