Skip to content

Commit

Permalink
Update spam.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRizoel committed Jan 9, 2022
1 parent 0fcc4c4 commit 655ad5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RiZoeLXSpam/plugins/spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ async def unlimitedspam(event):
@Riz9.on(events.NewMessage(incoming=True, pattern=r"\%spornspam(?: |$)(.*)" % hl))
@Riz10.on(events.NewMessage(incoming=True, pattern=r"\%spornspam(?: |$)(.*)" % hl))
async def pspam(e):
usage = "**MODULE NAME : PORN SPAM** \n\n command: `.pornspam <count>`"
if e.sender_id in SUDO_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
Expand All @@ -209,4 +208,5 @@ async def pspam(e):
await gifspam(e, smex)
await asyncio.sleep(0.4)
else:
usage = f"**MODULE NAME : PORN SPAM** \n\n command: `.pornspam <count>`"
await e.reply(usage, parse_mode=None, link_preview=None )

0 comments on commit 655ad5b

Please sign in to comment.