From 270b11f9b09180fe874cfff4a53d5cd5dac607d1 Mon Sep 17 00:00:00 2001 From: Jisan <66010486+Jisan09@users.noreply.github.com> Date: Thu, 11 May 2023 21:17:09 +0530 Subject: [PATCH] Update pmpermit.py --- userbot/plugins/pmpermit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/userbot/plugins/pmpermit.py b/userbot/plugins/pmpermit.py index 35f387896e..fcef92776f 100644 --- a/userbot/plugins/pmpermit.py +++ b/userbot/plugins/pmpermit.py @@ -118,7 +118,7 @@ async def do_pm_permit_action(event, chat): # sourcery no-metrics ) except BaseException: return - custompmpermit = gvarstatus("pmpermit_txt") or None + custompmpermit = gvarstatus("PM_TEXT") or None if custompmpermit is not None: USER_BOT_NO_WARN = custompmpermit.format( mention=mention, @@ -148,7 +148,7 @@ async def do_pm_permit_action(event, chat): # sourcery no-metrics You have {warns}/{totalwarns} warns until you get blocked by the CatUserbot. Don't spam my inbox. say reason and wait until my response.__""" - addgvar("pmpermit_text", USER_BOT_NO_WARN) + addgvar("PM_TEXT", USER_BOT_NO_WARN) PM_WARNS[str(chat.id)] += 1 try: if gvarstatus("pmmenu") is None: @@ -157,7 +157,7 @@ async def do_pm_permit_action(event, chat): # sourcery no-metrics ) msg = await results[0].click(chat.id, reply_to=reply_to_id, hide_via=True) else: - if PM_PIC := gvarstatus("pmpermit_pic"): + if PM_PIC := gvarstatus("PM_PIC"): CAT = list(PM_PIC.split()) PIC = list(CAT) CAT_IMG = random.choice(PIC)