Skip to content

Latest commit

 

History

History
120 lines (79 loc) · 2.4 KB

README.md

File metadata and controls

120 lines (79 loc) · 2.4 KB

GitHub last commit License Code style: black

Sapozhnikabot

Бот сапожника - @sapozhnikabot

Getting Started

These instructions will get you a copy of the project up and running on your server.

Run app in docker-compose

Clone the repo

git clone https://github.com/aatrubilin/sapozhnikabot

Go to project path

cd sapozhnikabot

Copy .production environments

cp .envs/.production_sample .envs/.production
nano .envs/.production

Setup envs

BOT_TOKEN=bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
TIMEOUT_SEC=7200
SWEARS_DATASET_PATH=swears_jsons/ru.json
LOG_LEVEL=INFO

Up docker compose

docker-compose up -d --build

Boom! 🔥 It's done! Add your bot to any chat!

Development

Make sure to have the following on your host:

Clone the repo

git clone https://github.com/aatrubilin/pinger

Go to project path

cd sapozhnikabot

Create a virtualenv:

python3 -m venv venv

Activate the virtualenv you have just created:

source venv/bin/activate

Install development requirements:

pip3 install -r requirements/local.txt

Install pre-commit hooks

pre-commit install

Set the environment variables

export BOT_TOKEN=bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
export TIMEOUT_SEC=10
export SWEARS_DATASET_PATH=swears_jsons/ru.json
export LOG_LEVEL=DEBUG

Run the app

python sapozhnikabot/main.py

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details