From 1e5b773566a189aaeecdcebb67391bd1fb638775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=99=E1=B4=80=E1=B4=85=20=CA=99=E1=B4=80=CA=99=CA=8F?= <154504921+Badhacker98@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:40:41 +0530 Subject: [PATCH] Delete BADMUNDA/plugins/couples.py --- BADMUNDA/plugins/couples.py | 125 ------------------------------------ 1 file changed, 125 deletions(-) delete mode 100644 BADMUNDA/plugins/couples.py diff --git a/BADMUNDA/plugins/couples.py b/BADMUNDA/plugins/couples.py deleted file mode 100644 index ab4fd32..0000000 --- a/BADMUNDA/plugins/couples.py +++ /dev/null @@ -1,125 +0,0 @@ -# <============================================== IMPORTS =========================================================> -import random -from datetime import datetime - -from pyrogram import filters - -from BADMUNDA.database.lovedb import get_couple, save_couple -from BADMUNDA.bot_class import BAD - - -# <=======================================================================================================> - - -# <================================================ FUNCTION =======================================================> -def dt(): - now = datetime.now() - dt_string = now.strftime("%d/%m/%Y %H:%M") - dt_list = dt_string.split(" ") - return dt_list - - -def dt_tom(): - a = ( - str(int(dt()[0].split("/")[0]) + 1) - + "/" - + dt()[0].split("/")[1] - + "/" - + dt()[0].split("/")[2] - ) - return a - - -tomorrow = str(dt_tom()) -today = str(dt()[0]) - -COUPLES_PIC = "https://telegra.ph/file/c98f568684c7c3121fc7b.jpg" -C = """ -✧ π—–π—’π—¨π—£π—Ÿπ—˜π—¦ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 ✧ -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -{} + ( PGMπŸŽ€πŸ˜Ά (https://t.me/Chalnayaaaaaarr) + 花火 (https://t.me/zd_sr07) + ゼロツー (https://t.me/wewewe_x) ) = πŸ’ž -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -π—‘π—˜π—ͺ π—–π—’π—¨π—£π—Ÿπ—˜ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 𝗖𝗔𝗑 π—•π—˜ π—–π—›π—’π—¦π—˜π—‘ 𝗔𝗧 12AM {} -""" -CAP = """ -✧ π—–π—’π—¨π—£π—Ÿπ—˜π—¦ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 ✧ -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -{} + {} = πŸ’ž -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -π—‘π—˜π—ͺ π—–π—’π—¨π—£π—Ÿπ—˜ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 𝗖𝗔𝗑 π—•π—˜ π—–π—›π—’π—¦π—˜π—‘ 𝗔𝗧 12AM {} -""" - -CAP2 = """ -✧ π—–π—’π—¨π—£π—Ÿπ—˜π—¦ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 ✧ -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -{} (tg://openmessage?user_id={}) + {} (tg://openmessage?user_id={}) = πŸ’ž\n -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -π—‘π—˜π—ͺ π—–π—’π—¨π—£π—Ÿπ—˜ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 𝗖𝗔𝗑 π—•π—˜ π—–π—›π—’π—¦π—˜π—‘ 𝗔𝗧 12AM {} -""" - - -@BAD.on_message(filters.command(["couple", "couples", "shipping"]) & ~filters.private) -async def nibba_nibbi(_, message): - if message.from_user.id == 6465468935: - my_ = await _.get_users("rfxtuv") - me = await _.get_users(6465468935) - await message.reply_photo( - photo=COUPLES_PIC, caption=C.format(me.mention, tomorrow) - ) - else: - try: - chat_id = message.chat.id - is_selected = await get_couple(chat_id, today) - if not is_selected: - list_of_users = [] - async for i in _.get_chat_members(message.chat.id, limit=50): - if not i.user.is_bot: - list_of_users.append(i.user.id) - if len(list_of_users) < 2: - return await message.reply_text("ɴᴏᴛ α΄‡Ι΄α΄α΄œΙ’Κœ ᴜsᴇʀs ΙͺΙ΄ α΄›ΚœΙͺs Ι’Κ€α΄α΄œα΄˜.") - c1_id = random.choice(list_of_users) - c2_id = random.choice(list_of_users) - while c1_id == c2_id: - c1_id = random.choice(list_of_users) - c1_mention = (await _.get_users(c1_id)).mention - c2_mention = (await _.get_users(c2_id)).mention - await _.send_photo( - message.chat.id, - photo=COUPLES_PIC, - caption=CAP.format(c1_mention, c2_mention, tomorrow), - ) - - couple = {"c1_id": c1_id, "c2_id": c2_id} - await save_couple(chat_id, today, couple) - - elif is_selected: - c1_id = int(is_selected["c1_id"]) - c2_id = int(is_selected["c2_id"]) - - c1_name = (await _.get_users(c1_id)).first_name - c2_name = (await _.get_users(c2_id)).first_name - print(c1_id, c2_id, c1_name, c2_name) - couple_selection_message = f"""✧ π—–π—’π—¨π—£π—Ÿπ—˜π—¦ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 ✧ -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -[{c1_name}](tg://openmessage?user_id={c1_id}) + [{c2_name}](tg://openmessage?user_id={c2_id}) = πŸ’ž -βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž– -π—‘π—˜π—ͺ π—–π—’π—¨π—£π—Ÿπ—˜ 𝗒𝗙 π—§π—›π—˜ 𝗗𝗔𝗬 𝗖𝗔𝗑 π—•π—˜ π—–π—›π—’π—¦π—˜π—‘ 𝗔𝗧 12AM {tomorrow}""" - await _.send_photo( - message.chat.id, photo=COUPLES_PIC, caption=couple_selection_message - ) - except Exception as e: - print(e) - await message.reply_text(str(e)) - - -# <=================================================== HELP ====================================================> - - -__help__ = """ -πŸ’˜ *Choose couples in your chat* - -Β» /couple, /couples, /shipping *:* Choose 2 users and send their names as couples in your chat. -""" - -__mod_name__ = "COUPLE" -# <================================================ END =======================================================>