From 26c92e2a6126f7c937b45f0fde82e161d89d0fab Mon Sep 17 00:00:00 2001 From: Igor <50257429+igorechek06@users.noreply.github.com> Date: Sun, 29 Aug 2021 11:03:30 +0900 Subject: Bug fix --- .gitignore | 3 ++- handlers/generate.py | 2 +- handlers/on_message.py | 10 ++++------ 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 .vscode FunnyPineappleBot.service -config.py \ No newline at end of file +config.py +samples.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 from utils import filters as f -@dp.message_handler(f.message.chance(10), f.message.is_chat) +@dp.message_handler(f.message.chance(10), f.message.is_chat, content_types=[t.ContentType.ANY]) async def срать_сообщение_с_шансом(msg: t.Message): await сгенерировать_хуету(msg) 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 from utils import filters as f -async def sosalka(msg: t.Message): - '''сосет сообщения''' +async def сосалка(msg: t.Message): text = msg.text or msg.caption if text.startswith('/'): return False @@ -13,7 +12,6 @@ async def sosalka(msg: t.Message): return False -@dp.message_handler(f.message.is_chat, f.message.has_text, sosalka, content_types=[t.ContentType.ANY]) -async def НАХУЯ_ПРАВДА_Я_НЕ_ЗНАЮ_ЗАЧЕМ_ЭТА_ФУНКЦИЯ_НУЖНА(): - 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 ') - return 'я могу сюда любую хуйню написать, все равно в фильтре фолз =)))))))))))))))))00' +@dp.message_handler(f.message.is_chat, f.message.has_text, сосалка, content_types=[t.ContentType.ANY]) +async def ХУЙ(): + pass -- cgit v1.2.3