Skip to content
Open
Show file tree
Hide file tree
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
25 changes: 15 additions & 10 deletions userbot/modules/afk.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

# ========================= CONSTANTS ============================
AFKSTR = [
f"**• ᴍᴀᴀꜰ ʟᴏʀᴅ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!**",
f"**• ᴍᴀᴀꜰ ʟᴏʀᴅ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ\n • ᴛᴜɴɢɢᴜ ꜱᴀᴍᴘᴀɪ ᴅɪᴀ ᴋᴇᴍʙᴀʟɪ ᴏɴʟɪɴᴇ!**",
f"**• ʟᴏʀᴅ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!\n • ᴛᴜɴɢɢᴜʟᴀʜ ꜱᴀᴍᴘᴀɪ ᴏɴʟɪɴᴇ!**",
f"**• ᴍᴀᴀꜰ ʟᴏʀᴅ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!**",
f"**• ᴍᴀᴀꜰ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!**",
f"**• ᴍᴀᴀꜰ {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ\n • ᴛᴜɴɢɢᴜ ꜱᴀᴍᴘᴀɪ ᴅɪᴀ ᴋᴇᴍʙᴀʟɪ ᴏɴʟɪɴᴇ!**",
f"**• {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!\n • ᴛᴜɴɢɢᴜʟᴀʜ ꜱᴀᴍᴘᴀɪ ᴏɴʟɪɴᴇ!**",
f"**• {ALIVE_NAME} ꜱᴇᴅᴀɴɢ ᴀꜰᴋ!**",
]


Expand Down Expand Up @@ -62,16 +62,21 @@ async def set_afk(afk_e):
afk_start = start_1.replace(microsecond=0)
if string:
AFKREASON = string
await afk_e.edit(f"- 𝗔 𝗙 𝗞 -\n**• ʟᴏʀᴅ ᴛᴇʟᴀʜ ᴀꜰᴋ**\
await afk_e.edit(f"-\n** • ╭┈─────── ೄྀ࿐ ˊˎ-LORD °ANO°
╰┈➤❝ [ Afk ] ❞**\
\n**• ᴀʟᴀꜱᴀɴ :** `{string}`")
else:
await afk_e.edit("- 𝗔 𝗙 𝗞 -\n**• ʟᴏʀᴅ ᴛᴇʟᴀʜ ᴀꜰᴋ**")
await afk_e.edit("-\n**• ╭┈─────── ೄྀ࿐ ˊˎ-
LORD °ANO°
╰┈➤❝ [ Afk ] ❞**")
if user.last_name:
await afk_e.client(UpdateProfileRequest(first_name=user.first_name, last_name=user.last_name + "【AFK】"))
else:
await afk_e.client(UpdateProfileRequest(first_name=user.first_name, last_name="【AFK】"))
if BOTLOG:
await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\n**Lord Telah AFK!**")
await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\n**╭┈─────── ೄྀ࿐ ˊˎ-
LORD °ANO°
╰┈➤❝ [ Afk ] ❞!**")
ISAFK = True
afk_time = datetime.now() # pylint:disable=E0602
raise StopPropagation
Expand All @@ -98,7 +103,7 @@ async def type_afk_is_not_true(notafk):
afk_end = back_alive.replace(microsecond=0)
if ISAFK:
ISAFK = False
msg = await notafk.respond("**ʟᴏʀᴅ ᴛᴇʟᴀʜ ᴋᴇᴍʙᴀʟɪ !!**")
msg = await notafk.respond("**Ano sudah kembali !!**")
time.sleep(3)
await msg.delete()
await notafk.client(UpdateProfileRequest(first_name=user.first_name, last_name=last1))
Expand Down Expand Up @@ -243,7 +248,7 @@ async def afk_on_pm(sender):
afk_since = f"`{int(seconds)} Detik`"
if sender.sender_id not in USERS:
if AFKREASON:
await sender.reply(f"- 𝗔 𝗙 𝗞 -\n **ʟᴏʀᴅ ᴍᴀꜱɪʜ ᴀꜰᴋ** {afk_since} **ʏᴀɴɢ ʟᴀʟᴜ.**\
await sender.reply(f"-\n **ᴍᴀꜱɪʜ ᴀꜰᴋ** {afk_since} **ʏᴀɴɢ ʟᴀʟᴜ.**\
\n**• ᴀʟᴀꜱᴀɴ :** `{AFKREASON}`")
else:
await sender.reply(str(choice(AFKSTR)))
Expand All @@ -252,7 +257,7 @@ async def afk_on_pm(sender):
elif apprv and sender.sender_id in USERS:
if USERS[sender.sender_id] % randint(2, 4) == 0:
if AFKREASON:
await sender.reply(f"- 𝗔 𝗙 𝗞 -\n **ʟᴏʀᴅ ᴍᴀꜱɪʜ ᴀꜰᴋ** {afk_since} **ʏᴀɴɢ ʟᴀʟᴜ.**\
await sender.reply(f"- 𝗔 𝗙 𝗞 -\n **ᴍᴀꜱɪʜ ᴀꜰᴋ** {afk_since} **ʏᴀɴɢ ʟᴀʟᴜ.**\
\n**• ᴀʟᴀꜱᴀɴ :** `{AFKREASON}`")
else:
await sender.reply(str(choice(AFKSTR)))
Expand Down
12 changes: 12 additions & 0 deletions userbot/modules/alvingans.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,18 @@ async def typewriter(typew):
"█████‡‡‡‡‡‡‡██████████\n")


@register(outgoing=True, pattern='^.kitty(?: |$)(.*)')
async def typewriter(typew):
typew.pattern_match.group(1)
await typew.edit("┈▕▔╲▂▂▂▕╲╭╮╱▏▔▏┈\n"
"┈╱┈┈┈┈┈▕╱╰╯╲▏┈╲┈\n"
"┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈▏\n"
"┈┈┈┈▇┈┈╭╮┈┈▇┈┈┈▏\n"
"┈╳┈┈┈┈┈╰╯┈┈┈┈┈╳┈\n"
"┈┈╳▂▂▂▂▂▂▂▂▂▂╳┈┈\n")



@register(outgoing=True, pattern='^.tank(?: |$)(.*)')
async def typewriter(typew):
typew.pattern_match.group(1)
Expand Down
2 changes: 1 addition & 1 deletion userbot/modules/kekuatan.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

@register(outgoing=True, pattern=r'^.kekuatan(:? |$)([1-8])?')
async def _(fry):
await fry.edit("`Lord Mengaktifkan Kekuatan Telegram...👾`")
await fry.edit("`TENAGA DALAM`")
level = fry.pattern_match.group(2)
if fry.fwd_from:
return
Expand Down
8 changes: 4 additions & 4 deletions userbot/modules/www.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ async def pingme(pong):
await pong.edit(". /¯ )\n /¯ /\n / /\n /´¯/' '/´¯¯`•¸\n /'/ / / /¨¯\\ \n ('( ( ( ( ¯~/' ')\n \\ /\n \\ _.•´\n \\ (\n \\ ")
end = datetime.now()
duration = (end - start).microseconds / 1000
await pong.edit(f"**𖣘 PING** "
f"\n `%sms` \n"
f"**𖣘 LORD** "
f"\n `{ALIVE_NAME}` \n" % (duration))
await pong.edit(f"** ͟͟͞͞➳❥ PING** "
f"\n : ̗̀➛ `%sms` \n"
f"**𖣘 ANO** "
f"\n : ̗̀➛ `{ALIVE_NAME}` \n" % (duration))


@register(outgoing=True, pattern="^.lping$")
Expand Down