diff options
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/commands.py | 21 | ||||
| -rw-r--r-- | shared/instances.py | 2 |
2 files changed, 10 insertions, 13 deletions
diff --git a/shared/commands.py b/shared/commands.py index 34f9dbb..a54a770 100644 --- a/shared/commands.py +++ b/shared/commands.py | |||
| @@ -1,17 +1,14 @@ | |||
| 1 | from aiogram.types import \ | 1 | from aiogram.types import BotCommand as cmd |
| 2 | BotCommand as cmd, \ | 2 | from aiogram.types import BotCommandScopeAllGroupChats as group |
| 3 | BotCommandScopeAllGroupChats as group, \ | 3 | from aiogram.types import BotCommandScopeAllPrivateChats as private |
| 4 | BotCommandScopeAllPrivateChats as private | ||
| 5 | 4 | ||
| 6 | commands = { | 5 | commands = { |
| 7 | group(): [ | 6 | group(): [ |
| 8 | cmd('gen', 'Высрвть текст'), | 7 | cmd("gen", "Высрвть текст"), |
| 9 | cmd('del', 'Смыть говно'), | 8 | cmd("del", "Смыть говно"), |
| 10 | cmd('pin', 'Повесить говно на стенку'), | 9 | cmd("pin", "Повесить говно на стенку"), |
| 11 | cmd('gif', 'Превратить картинку в gif'), | 10 | cmd("gif", "Превратить картинку в gif"), |
| 12 | cmd('chance', 'Установить шанс высирания говна') | 11 | cmd("chance", "Установить шанс высирания говна"), |
| 13 | ], | 12 | ], |
| 14 | private(): [ | 13 | private(): [cmd("gif", "Превратить картинку в gif")], |
| 15 | cmd('gif', 'Превратить картинку в gif') | ||
| 16 | ] | ||
| 17 | } | 14 | } |
diff --git a/shared/instances.py b/shared/instances.py index 5351f9c..280ec49 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 | from config import token | 3 | from config import token |
| 3 | 4 | ||
| 4 | print(token) | ||
| 5 | bot = Bot(token=token) | 5 | bot = Bot(token=token) |
| 6 | dp = Dispatcher(bot) | 6 | dp = Dispatcher(bot) |
| 7 | gen_chance = 10 | 7 | gen_chance = 10 |
