aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <50257429+igorechek06@users.noreply.github.com>2021-08-29 11:03:30 +0900
committerIgor <50257429+igorechek06@users.noreply.github.com>2021-08-29 11:03:30 +0900
commit26c92e2a6126f7c937b45f0fde82e161d89d0fab (patch)
tree13ad15f8b4ba9dfa8d4692e796e72fa21a90b2d0
parente89ffb793f58a31036644052ed2402fd362d456b (diff)
downloadkarpov_ai_bot-26c92e2a6126f7c937b45f0fde82e161d89d0fab.tar.gz
karpov_ai_bot-26c92e2a6126f7c937b45f0fde82e161d89d0fab.zip
Bug fix
-rw-r--r--.gitignore3
-rw-r--r--handlers/generate.py2
-rw-r--r--handlers/on_message.py10
3 files changed, 7 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index a626f1b..083c59f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -133,4 +133,5 @@ dmypy.json
133.vscode 133.vscode
134 134
135FunnyPineappleBot.service 135FunnyPineappleBot.service
136config.py \ No newline at end of file 136config.py
137samples.txt \ No newline at end of file
diff --git a/handlers/generate.py b/handlers/generate.py
index 3902f07..d0985c0 100644
--- a/handlers/generate.py
+++ b/handlers/generate.py
@@ -4,7 +4,7 @@ from aiogram import types as t
4from utils import filters as f 4from utils import filters as f
5 5
6 6
7@dp.message_handler(f.message.chance(10), f.message.is_chat) 7@dp.message_handler(f.message.chance(10), f.message.is_chat, content_types=[t.ContentType.ANY])
8async def срать_сообщение_с_шансом(msg: t.Message): 8async def срать_сообщение_с_шансом(msg: t.Message):
9 await сгенерировать_хуету(msg) 9 await сгенерировать_хуету(msg)
10 10
diff --git a/handlers/on_message.py b/handlers/on_message.py
index b9b5499..ee514ee 100644
--- a/handlers/on_message.py
+++ b/handlers/on_message.py
@@ -3,8 +3,7 @@ from aiogram import types as t
3from utils import filters as f 3from utils import filters as f
4 4
5 5
6async def sosalka(msg: t.Message): 6async def сосалка(msg: t.Message):
7 '''сосет сообщения'''
8 text = msg.text or msg.caption 7 text = msg.text or msg.caption
9 if text.startswith('/'): 8 if text.startswith('/'):
10 return False 9 return False
@@ -13,7 +12,6 @@ async def sosalka(msg: t.Message):
13 return False 12 return False
14 13
15 14
16@dp.message_handler(f.message.is_chat, f.message.has_text, sosalka, content_types=[t.ContentType.ANY]) 15@dp.message_handler(f.message.is_chat, f.message.has_text, сосалка, content_types=[t.ContentType.ANY])
17async def НАХУЯ_ПРАВДА_Я_НЕ_ЗНАЮ_ЗАЧЕМ_ЭТА_ФУНКЦИЯ_НУЖНА(): 16async def ХУЙ():
18 print('NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER NIGGER ') 17 pass
19 return 'я могу сюда любую хуйню написать, все равно в фильтре фолз =)))))))))))))))))00'