Skip to content

Commit

Permalink
fix: Pm-permit db vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisan09 committed May 11, 2023
1 parent 937867a commit 929d3b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions userbot/core/inlinebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ async def deploy_article(event):

async def pmpermit_article(event):
buttons = [Button.inline(text="Show Options.", data="show_pmpermit_options")]
query = gvarstatus("pmpermit_text")
query = gvarstatus("PM_TEXT")
media = None
if PM_PIC := gvarstatus("pmpermit_pic"):
if PM_PIC := gvarstatus("PM_PIC"):
CAT = list(PM_PIC.split())
PIC = list(CAT)
media = random.choice(PIC)
Expand Down
2 changes: 1 addition & 1 deletion userbot/plugins/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def do_pm_permit_action(event, chat): # sourcery no-metrics
del PMMESSAGE_CACHE[str(chat.id)]
except Exception as e:
LOGS.info(str(e))
custompmblock = gvarstatus("pmblock") or None
custompmblock = gvarstatus("PM_BLOCK") or None
if custompmblock is not None:
USER_BOT_WARN_ZERO = custompmblock.format(
mention=mention,
Expand Down

0 comments on commit 929d3b1

Please sign in to comment.