You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using black to keep our code looking nice and tidy. To make things easier, there's a pre-commit hook which ensures that files to commit are properly formatted. You need to install and initialize pre-commit. Any installation should suffice, one can find pipenv good choice since we use it in this project. After installation run:
6
22
7
23
```bash
8
-
$ docker build -t wachter_bot .
9
-
$ docker run -e TELEGRAM_TOKEN=<token> wachter_bot
24
+
pre-commit install
10
25
```
11
26
12
-
## Как добавить в свой чат
27
+
Then will be executed black against changed files in commits.
28
+
29
+
### Running
30
+
31
+
1) Set `TELEGRAM_TOKEN` and `TELEGRAM_ERROR_CHAT_ID` environment variable;
13
32
14
-
1. Добавить в чат
15
-
2. Написать whois (минимальная длина 20 символов)
16
-
3. Написать боту в лс /start - бот заработает и появятся настройки чата
33
+
2) Run:
34
+
35
+
```bash
36
+
docker-compose -f docker-compose.dev.yml build && docker-compose -f docker-compose.dev.yml up
0 commit comments