Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.
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
12 changes: 6 additions & 6 deletions userbot/modules/afk.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ async def set_afk(afk_e):
afk_start = start_1.replace(microsecond=0)
if string:
AFKREASON = string
await afk_e.edit(f"Going AFK!\
await afk_e.edit(f"Into The Silence!\
\nReason: `{string}`")
else:
await afk_e.edit("Going AFK!")
await afk_e.edit("Into The Silence!")
if BOTLOG:
await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\nYou went AFK!")
await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\nYou go to the Silence!")
ISAFK = True
afk_time = datetime.now() # pylint:disable=E0602
raise StopPropagation
Comment on lines -74 to 82
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ganti`

Expand All @@ -97,7 +97,7 @@ async def type_afk_is_not_true(notafk):
afk_end = back_alive.replace(microsecond=0)
if ISAFK:
ISAFK = False
msg = await notafk.respond("I'm no longer AFK.")
msg = await notafk.respond("Coming back from Silence!")
time.sleep(3)
await msg.delete()
if BOTLOG:
Comment on lines 97 to 103
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ganti

Expand Down Expand Up @@ -163,7 +163,7 @@ async def mention_afk(mention):
afk_since = f"`{int(seconds)}s` ago"
if mention.sender_id not in USERS:
if AFKREASON:
await mention.reply(f"I'm AFK since {afk_since}.\
await mention.reply(f"I'm not active right now {afk_since}.\
\nReason: `{AFKREASON}`")
else:
await mention.reply(str(choice(AFKSTR)))
Comment on lines 163 to 169
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ganti

Expand All @@ -172,7 +172,7 @@ async def mention_afk(mention):
elif mention.sender_id in USERS:
if USERS[mention.sender_id] % randint(2, 4) == 0:
if AFKREASON:
await mention.reply(f"I'm still AFK since {afk_since}.\
await mention.reply(f"I'm still not active right now {afk_since}.\
\nReason: `{AFKREASON}`")
else:
await mention.reply(str(choice(AFKSTR)))
Comment on lines 172 to 178
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ganti

Expand Down
38 changes: 19 additions & 19 deletions userbot/modules/stickers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
from telethon.tl.types import DocumentAttributeSticker

KANGING_STR = [
"Using Witchery to kang this sticker...",
"Plagiarising hehe...",
"Inviting this sticker over to my pack...",
"Eh Stikernya Kok Bagus Aku Minta Ya :3...",
"Aku Curi Ah...",
"Weh Stikernya Lumayan, Ku Ambil Ya Buat Koleksi...",
"Kanging this sticker...",
"Hey that's a nice sticker!\nMind if I kang?!..",
"hehe me stel ur stikér\nhehe.",
"Ay look over there (☉。☉)!→\nWhile I kang this...",
"Roses are red violets are blue, kanging this sticker so my pacc looks cool",
"Imprisoning this sticker...",
"Mr.Steal Your Sticker is stealing this sticker... ",
"Dih Kok Stikernya Bagus Jink :3..",
"GUA AMBIL YA JINK STIKERNYA\nerere.",
"Gosah Bacot Anda YA→\nSelagi Gua Curi...",
"Eh Bang Aku Mau Curi Stiker Kao",
"Kalo Iri Bilang Bos :3...",
"Mr.X Lagi Curi Stiker Nih... ",
]


@register(outgoing=True, pattern="^.kang")
@register(outgoing=True, pattern="^.curry")
async def kang(args):
""" For .kang command, kangs stickers or creates new ones. """
""" For .curry command, kangs stickers or creates new ones. """
user = await bot.get_me()
if not user.username:
user.username = user.first_name
Expand Down Expand Up @@ -71,10 +71,10 @@ async def kang(args):
is_anim = True
photo = 1
else:
await args.edit("`Unsupported File!`")
await args.edit("`F Filenya Ga Support!`")
return
else:
await args.edit("`I can't kang that...`")
await args.edit("`Amjim Ga Bisa Gua Curi Ler...`")
return

if photo:
Expand Down Expand Up @@ -341,13 +341,13 @@ async def sticker_to_png(sticker):

CMD_HELP.update({
"stickers":
".kang\
\nUsage: Reply .kang to a sticker or an image to kang it to your userbot pack.\
\n\n.kang [emoji('s)]\
\nUsage: Works just like .kang but uses the emoji('s) you picked.\
\n\n.kang [number]\
".curry\
\nUsage: Reply .curry to a sticker or an image to kang it to your userbot pack.\
\n\n.curry [emoji('s)]\
\nUsage: Works just like .curry but uses the emoji('s) you picked.\
\n\n.curry [number]\
\nUsage: Kang's the sticker/image to the specified pack but uses 🤔 as emoji.\
\n\n.kang [emoji('s)] [number]\
\n\n.curry [emoji('s)] [number]\
\nUsage: Kang's the sticker/image to the specified pack and uses the emoji('s) you picked.\
\n\n.stkrinfo\
\nUsage: Gets info about the sticker pack.\
Expand Down