Total Complexity | 0 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from environs import Env |
||
2 | |||
3 | env = Env() |
||
4 | env.read_env() |
||
5 | |||
6 | BOT_TOKEN = env.str("BOT_TOKEN") |
||
7 | ADMINS = env.list("ADMINS") |
||
8 | IP = env.str("ip") |
||
9 | |||
10 | # Config для базы данных |
||
11 | host = env.str("host") |
||
12 | database = env.str("database") |
||
13 | user = env.str("user") |
||
14 | password = env.str("password") |
||
15 | |||
16 | # Config для middleware |
||
17 | ban_time = 60 |
||
18 | exceeded_count = 2 |
||
19 |