Skip to content

Commit

Permalink
Update afk.py
Browse files Browse the repository at this point in the history
minor mistakes updated
  • Loading branch information
mkaraniya authored Dec 14, 2020
1 parent 778f83d commit 2db9d5d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions userbot/modules/afk.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,21 +186,21 @@ async def mention_afk(mention):
if mention.sender_id not in USERS:
if AFKREASON:

await mention.reply(f"My master **Ashwin** is **afk since** {afk_since}.\
await mention.reply(f"My master **{DEFAULTUSER}** is **afk since** {afk_since}.\
\n**Because my master is** `{AFKREASON}`")
else:
await mention.reply(f"My master Ashwin is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")
await mention.reply(f"My master {DEFAULTUSER} is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")

USERS.update({mention.sender_id: 1})
COUNT_MSG = COUNT_MSG + 1
elif mention.sender_id in USERS:
if USERS[mention.sender_id] % randint(2, 4) == 0:
if AFKREASON:

await mention.reply(f"My master **Ashwin** is **afk since** {afk_since}.\
await mention.reply(f"My master **{DEFAULTUSER}** is **afk since** {afk_since}.\
\n**Because my master is** `{AFKREASON}`")
else:
await mention.reply(f"My master Ashwin is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")
await mention.reply(f"My master {DEFAULTUSER} is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")

USERS[mention.sender_id] = USERS[mention.sender_id] + 1
COUNT_MSG = COUNT_MSG + 1
Expand Down Expand Up @@ -267,21 +267,21 @@ async def afk_on_pm(sender):
if sender.sender_id not in USERS:
if AFKREASON:

await sender.reply(f"My master **Ashwin** is **afk since** {afk_since}.\
await sender.reply(f"My master **{DEFAULTUSER}** is **afk since** {afk_since}.\
\n**Because my master is** `{AFKREASON}`")
else:
await sender.replyf(f"My master Ashwin is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")
await sender.replyf(f"My master {DEFAULTUSER} is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")

USERS.update({sender.sender_id: 1})
COUNT_MSG = COUNT_MSG + 1
elif apprv and sender.sender_id in USERS:
if USERS[sender.sender_id] % randint(2, 4) == 0:
if AFKREASON:

await sender.reply(f"My master **Ashwin** is **afk since** {afk_since}.\
await sender.reply(f"My master **{DEFAULTUSER}** is **afk since** {afk_since}.\
\n**Because my master is** `{AFKREASON}`")
else:
await sender.reply(f"My master Ashwin is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")
await sender.reply(f"My master {DEFAULTUSER} is **afk Since** {afk_since}.\nand My King has left a word for you only: \n{AFKSK}\n`.` ")

USERS[sender.sender_id] = USERS[sender.sender_id] + 1
COUNT_MSG = COUNT_MSG + 1
Expand Down

0 comments on commit 2db9d5d

Please sign in to comment.