Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pmpermit.py #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
11 changes: 6 additions & 5 deletions userbot/modules/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
from userbot.events import register

# ========================= CONSTANTS ============================
UNAPPROVED_MSG = ("`Welcome, You are a wonderful person with a wonderful view of life.`\n\n"
"`Your companionship is always an opportunity But Sed This line is not for you.`"
"`So just tell why you are here ?`\n\n"
"`Your message will be responded when I'm free,Don't sit here whole day coz there are lots of pending messages😶‚`")
UNAPPROVED_MSG = (
"`Hola!! It's me from Telegram Security Service you Pingged my Boss SR.\n\n`"
"`If you are here for something then you are at a Right Place....`"
"`He will Ping you when he will be Online. Until Donot Message Otherwise You Will Be Blocked Automatically By Me..\n\n`"
"`Nice To Meet You!!!`")
# =================================================================


Expand Down Expand Up @@ -66,7 +67,7 @@ async def permitpm(event):
else:
COUNT_PM[event.chat_id] = COUNT_PM[event.chat_id] + 1

if COUNT_PM[event.chat_id] > 4:
if COUNT_PM[event.chat_id] > 10:
await event.respond(
"`You were spamming my master's PM, which I didn't like.`\n"
"`You have been BLOCKED and reported as SPAM, until further notice.`"
Expand Down