From 27eb903ddefaa889399a880fca5c720e031ea4e9 Mon Sep 17 00:00:00 2001 From: aashiq075 <67676774+aashiq075@users.noreply.github.com> Date: Wed, 16 Sep 2020 07:17:49 +0530 Subject: [PATCH 1/2] Update shoot.py --- stdplugins/shoot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/shoot.py b/stdplugins/shoot.py index 1313eef131..0eba71289a 100644 --- a/stdplugins/shoot.py +++ b/stdplugins/shoot.py @@ -11,6 +11,6 @@ async def killing(killed): "/", "#", "@", "!"): if await killed.get_reply_message(): await killed.edit( - "`Targeted user killed by Headshot 😈.. Bhag Bsdk`\n" + "`Targeted user killed by Headshot 😈.. Bhag Bsdk,patta se headshot`\n" "#Sad_Reacts_Onli\n" ) From ed9fd65828453b22c019f3fbb3011025ca642ad4 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Wed, 16 Sep 2020 01:48:26 +0000 Subject: [PATCH 2/2] 'Refactored by Sourcery' --- stdplugins/shoot.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/stdplugins/shoot.py b/stdplugins/shoot.py index 0eba71289a..f1e03b379e 100644 --- a/stdplugins/shoot.py +++ b/stdplugins/shoot.py @@ -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,patta se headshot`\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" + )