Skip to content

Commit

Permalink
Merge pull request #19 from Mr-VASU/patch-4
Browse files Browse the repository at this point in the history
Update __shield.py
  • Loading branch information
Shiv-x authored Jul 9, 2021
2 parents 2c17851 + 9a6f64f commit 64a6de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LaylaRobot/modules/__shield.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def ws(event):
await event.delete()
st = sender.first_name
hh = sender.id
final = f"**NSFW DETECTED**\n\n{st}](tg://user?id={hh}) your message contain NSFW content.. So, Yone deleted the message\n\n **Nsfw Sender - User / Bot :** {st}](tg://user?id={hh}) \n\n`⚔️Automatic Detections Powered By YoneAI` \n**#GROUP_GUARDIAN** "
final = f"**NSFW DETECTED**\n\n{st}](tg://user?id={hh}) your message contain NSFW content.. So, Layla deleted the message\n\n **Nsfw Sender - User / Bot :** {st}](tg://user?id={hh}) \n\n`⚔️Automatic Detections Powered By LaylaAI` \n**#GROUP_GUARDIAN** "
dev = await event.respond(final)
await asyncio.sleep(10)
await dev.delete()
Expand Down Expand Up @@ -210,7 +210,7 @@ async def nsfw_watch(client, message):
Escobar = midhun.id
await client.send_message(
message.chat.id,
f"**NSFW DETECTED**\n\n{hehe}'s message contain NSFW content.. So, Yone deleted the message\n\n **Nsfw Sender - User / Bot :** `{Escobar}` \n**Chat Title:** `{ctitle}` \n\n`⚔️Automatic Detections Powered By YoneAI` \n**#GROUP_GUARDIAN** ",
f"**NSFW DETECTED**\n\n{hehe}'s message contain NSFW content.. So, Layla deleted the message\n\n **Nsfw Sender - User / Bot :** `{Escobar}` \n**Chat Title:** `{ctitle}` \n\n`⚔️Automatic Detections Powered By LaylaAI` \n**#GROUP_GUARDIAN** ",
)
message.continue_propagation()
"""
Expand Down Expand Up @@ -367,7 +367,7 @@ async def del_profanity(event):
await event.delete()
st = sender.first_name
hh = sender.id
final = f"**NSFW DETECTED**\n\n{st}](tg://user?id={hh}) your message contain NSFW content.. So, Yone deleted the message\n\n **Nsfw Sender - User / Bot :** {st}](tg://user?id={hh}) \n\n`⚔️Automatic Detections Powered By YoneAI` \n**#GROUP_GUARDIAN** "
final = f"**NSFW DETECTED**\n\n{st}](tg://user?id={hh}) your message contain NSFW content.. So, Layla deleted the message\n\n **Nsfw Sender - User / Bot :** {st}](tg://user?id={hh}) \n\n`⚔️Automatic Detections Powered By LaylaAI` \n**#GROUP_GUARDIAN** "
dev = await event.respond(final)
await asyncio.sleep(10)
await dev.delete()
Expand Down Expand Up @@ -430,7 +430,7 @@ async def del_profanity(event):

__help__ = """
<b> Group Guardian: </b>
Yone can protect your group from NSFW senders, Slag word users and also can force members to use English
Layla can protect your group from NSFW senders, Slag word users and also can force members to use English
<b>Commmands</b>
- /gshield <i>on/off</i> - Enable|Disable Porn cleaning
Expand Down

0 comments on commit 64a6de1

Please sign in to comment.