diff options
| author | Igor Tolmachov <me@igorek.dev> | 2022-07-09 01:13:20 +0900 |
|---|---|---|
| committer | Igor Tolmachov <me@igorek.dev> | 2022-07-09 01:13:20 +0900 |
| commit | 93067d9a91395c339ce55a111ce4b6e1020f0121 (patch) | |
| tree | 310012b67d6e31c3779e57cd50285650b2d83d13 /shared | |
| parent | 91a36ea91b7a1933e3f5933ca01396fee77c214a (diff) | |
| download | karpov_ai_bot-93067d9a91395c339ce55a111ce4b6e1020f0121.tar.gz karpov_ai_bot-93067d9a91395c339ce55a111ce4b6e1020f0121.zip | |
Теперь доступен не только в ананасах!
+ опрос на вступление человека
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/__init__.py | 4 | ||||
| -rw-r--r-- | shared/config.py | 3 | ||||
| -rw-r--r-- | shared/instances.py | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/shared/__init__.py b/shared/__init__.py index e69de29..9153c94 100644 --- a/shared/__init__.py +++ b/shared/__init__.py | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # isort: skip_file | ||
| 2 | from . import config | ||
| 3 | from . import instances | ||
| 4 | from . import commands | ||
diff --git a/shared/config.py b/shared/config.py new file mode 100644 index 0000000..6b973d3 --- /dev/null +++ b/shared/config.py | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | from os import environ as env | ||
| 2 | |||
| 3 | token = env["TOKEN"] | ||
diff --git a/shared/instances.py b/shared/instances.py index c1234b2..3ffec5e 100644 --- a/shared/instances.py +++ b/shared/instances.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | from aiogram import Bot, Dispatcher | 1 | from aiogram import Bot, Dispatcher |
| 2 | 2 | ||
| 3 | from config import token | 3 | from shared.config import token |
| 4 | 4 | ||
| 5 | bot = Bot(token=token) | 5 | bot = Bot(token=token) |
| 6 | dp = Dispatcher(bot) | 6 | dp = Dispatcher(bot) |
| 7 | gen_chance = {} | 7 | gen_chance: dict[int, int] = {} |
