diff options
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/__init__.py | 0 | ||||
| -rw-r--r-- | shared/commands.py | 7 | ||||
| -rw-r--r-- | shared/config.sample.py | 3 | ||||
| -rw-r--r-- | shared/instances.py | 5 |
4 files changed, 15 insertions, 0 deletions
diff --git a/shared/__init__.py b/shared/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/shared/__init__.py | |||
diff --git a/shared/commands.py b/shared/commands.py new file mode 100644 index 0000000..ffed9c3 --- /dev/null +++ b/shared/commands.py | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | from aiogram.types import BotCommand as cmd, BotCommandScopeAllGroupChats as group | ||
| 2 | |||
| 3 | commands = { | ||
| 4 | group(): [ | ||
| 5 | cmd('gen', 'жидко пукнуть') | ||
| 6 | ] | ||
| 7 | } | ||
diff --git a/shared/config.sample.py b/shared/config.sample.py new file mode 100644 index 0000000..f4a3f09 --- /dev/null +++ b/shared/config.sample.py | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | TOKEN = "" | ||
| 2 | test_token = "{test_token}" | ||
| 3 | main_token = "{main_token}" | ||
diff --git a/shared/instances.py b/shared/instances.py new file mode 100644 index 0000000..7eb883c --- /dev/null +++ b/shared/instances.py | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | from aiogram import Bot, Dispatcher | ||
| 2 | from .config import TOKEN | ||
| 3 | |||
| 4 | bot = Bot(token=TOKEN) | ||
| 5 | dp = Dispatcher(bot) | ||
