This repository is a template for Chatsky projects.
git clone https://github.com/deeppavlov/chatsky-template.git
cd chatsky-template
Alternatively, you can create a new repository using this one as a template via GitHub:
https://github.com/new?template_name=chatsky-template&template_owner=deeppavlov
[0.] Install dependencies with
(cd services/bot && pip install -r requirements.txt)
- Write your custom functions (e.g. custom responses, custom services) into
bot/custom
. - Edit Chatsky script at
bot/script.py
. - Save Telegram bot token into
secrets/tg_token.txt
. (currently this template only supports telegram bots)
(cd services/bot && pytest test.py)
docker build --target test services/bot
(export DB_URI="sqlite+aiosqlite:////$(pwd)/sqlite.db" TG_BOT_TOKEN_FILE="$(pwd)/secrets/tg_token.txt" && cd services/bot && python app.py)
docker compose up