Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions stdplugins/shoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
allow_sudo=True)) # pylint:disable=E0602
async def killing(killed):
""" Dont Kill Too much -_-"""
if not killed.text[0].isalpha() and killed.text[0] not in (
"/", "#", "@", "!"):
if await killed.get_reply_message():
await killed.edit(
"`Targeted user killed by Headshot 😈.. Bhag Bsdk`\n"
"#Sad_Reacts_Onli\n"
)
if (
not killed.text[0].isalpha()
and killed.text[0] not in ("/", "#", "@", "!")
and await killed.get_reply_message()
):
await killed.edit(
"`Targeted user killed by Headshot 😈.. Bhag Bsdk,patta se headshot`\n"
"#Sad_Reacts_Onli\n"
)
Comment on lines -10 to +18
Copy link
Author

Choose a reason for hiding this comment

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

Function killing refactored with the following changes:

  • Merge nested if conditions (merge-nested-ifs)