Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Merge branch 'alpha' of https://github.com/code-rgb/USERGE-X into alpha
Browse files Browse the repository at this point in the history
keks
  • Loading branch information
code-rgb committed Nov 3, 2020
2 parents 22e0a4a + 79424bd commit 361751f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions userge/plugins/utils/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def allow(message: Message):
"I need to reply to a user or provide the username/id or be in a private chat",
del_in=3,
)


@userge.on_cmd(
"nopm",
Expand Down Expand Up @@ -286,10 +286,12 @@ async def uninvitedPmHandler(message: Message):
)
else:
pmCounter.update({message.from_user.id: 1})
PMPERMIT_MSG[message.from_user.id] = (await message.reply(
noPmMessage.format_map(SafeDict(**user_dict))
+ "\n`- Protected by USERGE-X`"
)).message_id
PMPERMIT_MSG[message.from_user.id] = (
await message.reply(
noPmMessage.format_map(SafeDict(**user_dict))
+ "\n`- Protected by USERGE-X`"
)
).message_id
await asyncio.sleep(1)
await CHANNEL.log(f"#NEW_MESSAGE\n{user_dict['mention']} has messaged you")

Expand Down

1 comment on commit 361751f

@vercel
Copy link

@vercel vercel bot commented on 361751f Nov 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.