Gaivoronsky / ChatBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

This bot works only in Russian. It is based on neural network transformer models. It now supports a conversation context of up to 10 messages.

Project structure

├── .git                  <- Git (read-only)
├── .gitignore            <- Git (ignore)
├── LICENSE               <- License project
├── api                   <- API code
├── bot                   <- ChatBot code
├── db                    <- DB code
├── docker-compose.yml    <- Make file project
├── pyproject.toml        <- File for poetry
├── README.md             <- It's me
├── settings.py           <- Setting project
├── .env                  <- Create your

Install Docker

API_ID="API_ID"
API_HASH="API_HASH"
PHONE="PHONE"
MY_ID=MY_ID
CHAT_ID=CHAT_ID
  • Execute command
docker-compose up -d --build
  • Open website in browser localhost
  • Input telegram key in field
  • All Done!
  • For stop ChatBot uses next command
docker-compose down

Install local

  • Installing dependencies:
poetry install
poetry shell
  • Create .env file
API_ID="API_ID"
API_HASH="API_HASH"
PHONE="PHONE"
MY_ID=MY_ID
CHAT_ID=CHAT_ID
  • Start API:
python -m bot

About

License:Apache License 2.0


Languages

Language:Python 92.3%Language:Dockerfile 7.7%