Skip to content

Commit

Permalink
Update pmpermit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisan09 committed May 11, 2023
1 parent 929d3b1 commit 270b11f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userbot/plugins/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 270b11f

Please sign in to comment.