aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/commands.py21
-rw-r--r--shared/instances.py2
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 @@
1from aiogram.types import \ 1from aiogram.types import BotCommand as cmd
2 BotCommand as cmd, \ 2from aiogram.types import BotCommandScopeAllGroupChats as group
3 BotCommandScopeAllGroupChats as group, \ 3from aiogram.types import BotCommandScopeAllPrivateChats as private
4 BotCommandScopeAllPrivateChats as private
5 4
6commands = { 5commands = {
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 @@
1from aiogram import Bot, Dispatcher 1from aiogram import Bot, Dispatcher
2
2from config import token 3from config import token
3 4
4print(token)
5bot = Bot(token=token) 5bot = Bot(token=token)
6dp = Dispatcher(bot) 6dp = Dispatcher(bot)
7gen_chance = 10 7gen_chance = 10