From e1da5ebb5b4a5619d995df0929ee9a6da947b7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=99=E1=B4=80=E1=B4=85=20=E1=B4=8D=E1=B4=9C=C9=B4?= =?UTF-8?q?=E1=B4=85=E1=B4=80=20=F0=9F=8C=B8?= <154504921+Badhacker98@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:05:31 +0530 Subject: [PATCH] Delete shizuchat/modules/Yre2.py --- shizuchat/modules/Yre2.py | 42 --------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 shizuchat/modules/Yre2.py diff --git a/shizuchat/modules/Yre2.py b/shizuchat/modules/Yre2.py deleted file mode 100644 index 46a5e2c..0000000 --- a/shizuchat/modules/Yre2.py +++ /dev/null @@ -1,42 +0,0 @@ -import asyncio -from os import remove -from pyrogram import Client, filters -from pyrogram.enums import ChatType -from pyrogram.types import Message -from datetime import datetime -from time import time -from pyrogram.errors import MessageDeleteForbidden, RPCError -from asyncio import sleep -from pyrogram import Client, enums -from pyrogram.types import Message, User -from pyrogram import Client, enums, filters -from pyrogram import Client, enums, filters, raw -from pyrogram.errors.exceptions.bad_request_400 import ChatNotModified -from shizuchat import shizuchat -from pyrogram.types import ChatPermissions, Message -from os import getenv -from dotenv import load_dotenv -import random - -CMDS = [" ","sukh"] - -@shizuchat.on_message(filters.command(CMDS, prefixes=[""])) -async def handle_incoming_messages(client, message): - reactions = ['👍','âĪïļ','ðŸ”Ĩ','ðŸĨ°','👏','😁','ðŸĪĐ','👌','ðŸĨą','😍','âĪïļâ€ðŸ”Ĩ','ðŸ’Ŋ','ðŸĪĢ','⚡ïļ','ðŸ˜ī','👀','🙈','ðŸĪ','ðŸĪ—','ðŸĪŠ','💘','😘','😎'] - if not await react_to_message(client, message, random.choice(reactions)): - print("All positive reactions failed.") - return - -async def react_to_message(client, message, reactions): - for reaction in reactions: - try: - if hasattr(message, 'id'): - await client.send_reaction(message.chat.id, message.id, reactions) - return True - else: - print("Message object does not have id attribute.") - return False - except Exception as e: - print(f"An error occurred: {e}") - continue - return False