Бот сапожника - @sapozhnikabot
These instructions will get you a copy of the project up and running on your server.
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!
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
- pymorphy2 - Морфологический анализатор
- [Jigsaw] Multilingual swear profanity - The set swear phrases
- Дерзкий telegram бот - Пост на Хабре
- Alexandr Trubilin - Initial work - AATrubilin
This project is licensed under the MIT License - see the LICENSE file for details