diff --git a/.env b/.env.example similarity index 100% rename from .env rename to .env.example diff --git a/README.md b/README.md index 49d315fb26024fe30ecc992f997aed60d1370b04..ce7ef57d4601c186700d3f37f87e921926768129 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ You can run it locally or setup a deployment on your server. ### Local configuration To run this locally just clone the repo, -go to the cloned folder and run: +go to the cloned folder, rename .env.example to .env, fill it and then just run: ```shell pip install -r requirements/requirements.base.txt export $(cat .env) @@ -55,3 +55,4 @@ pip install -r requirements/requirements.dev.txt pre-commit install ``` Then you can do changes. +For testing you can use `make test`. diff --git a/src/actions/replies.py b/src/actions/replies.py index e1f83c38df9d72cd36881eab7bd1f70c42fddcf7..3fff6b03c7c91336364e616b12f4798b4242bcc1 100644 --- a/src/actions/replies.py +++ b/src/actions/replies.py @@ -11,7 +11,11 @@ logger = logging.getLogger(__name__) @config.telegram_client.on(events.ChatAction()) async def welcome(event: events.ChatAction.Event): if event.user_joined or event.user_added: - await event.respond(random.choice(["Привет!", "Добро пожаловать!"])) + await event.respond( + random.choice( + ["Привет!", "Добро пожаловать!", "ЗдравÑтвуй!", "Добрый день!"] + ) + ) if event.user_left or event.user_kicked: await event.respond( random.choice(["До Ñкорых вÑтреч!", "Прощайте!", "До ÑвиданиÑ!", "Пока!"])