diff options
| author | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
|---|---|---|
| committer | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
| commit | a8582c60e3bed5b93c989e2963d40130771cf11d (patch) | |
| tree | 747f2cfe1a8a8f003cba81d92ebe3822b4adc419 /shared | |
| parent | 2efa35c42be7ac554e3519b8673f7cad8c966e64 (diff) | |
| download | karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.tar.gz karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.zip | |
0.0.1
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) | ||
