From bb266ee35173c9c8a86114f9ef3dcfb26b8bd9cc Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Tue, 26 Dec 2023 10:00:43 +0700 Subject: [PATCH] [MissKaty] No need this because I have stopped my movies groups Signed-off-by: Yasir Aris M --- misskaty/plugins/filter_request.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/misskaty/plugins/filter_request.py b/misskaty/plugins/filter_request.py index a21e3da13b..0b7fadd1a0 100644 --- a/misskaty/plugins/filter_request.py +++ b/misskaty/plugins/filter_request.py @@ -24,12 +24,14 @@ chat = [-1001128045651, -1001255283935, -1001455886928] REQUEST_DB = {} +# This modules is only working for my movies group to help collect a list of film requests by members. -@app.on_message(filters.regex(r"alamu'?ala[iy]ku+m", re.I) & filters.chat(chat)) +# @app.on_message(filters.regex(r"alamu'?ala[iy]ku+m", re.I) & filters.chat(chat)) async def salamregex(_, message): await message.reply_text(text=f"Wa'alaikumsalam {message.from_user.mention} 😇") +# -1001255283935 is YMovieZ Group, and -1001575525902 is channel id which contains a collection of ddard member requests from the group. @app.on_message( filters.regex(r"#request|#req", re.I) & (filters.text | filters.photo) @@ -143,10 +145,10 @@ async def clear_reqdict(): shutil.rmtree("GensSS", ignore_errors=True) -@app.on_message( - filters.regex(r"makasi|thank|terimakasih|terima kasih|mksh", re.I) - & filters.chat(chat) -) +# @app.on_message( +# filters.regex(r"makasi|thank|terimakasih|terima kasih|mksh", re.I) +# & filters.chat(chat) +# ) async def thankregex(_, message): pesan = [ f"Sama-sama {message.from_user.first_name}",