From 09fcfcd32553973acbc4fec0ee7b02b3c4a82b3c Mon Sep 17 00:00:00 2001 From: TukangBak <79056360+TukangBak@users.noreply.github.com> Date: Wed, 24 Feb 2021 20:12:52 +0700 Subject: [PATCH 1/2] Brother salam.py --- userbot/modules/salam.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/userbot/modules/salam.py b/userbot/modules/salam.py index c138b558..453db8d9 100644 --- a/userbot/modules/salam.py +++ b/userbot/modules/salam.py @@ -10,25 +10,25 @@ @register(outgoing=True, pattern='^.P(?: |$)(.*)') async def typewriter(typew): typew.pattern_match.group(1) - await typew.edit("Assalamu'alaikum") + await typew.edit("Assalamu'alaikum My Brother") @register(outgoing=True, pattern='^.p(?: |$)(.*)') async def typewriter(typew): typew.pattern_match.group(1) - await typew.edit("Assalamu'alaikum") + await typew.edit("Assalamu'alaikum My Brother") @register(outgoing=True, pattern='^.L(?: |$)(.*)') async def typewriter(typew): typew.pattern_match.group(1) - await typew.edit("Wa'alaikumussalam") + await typew.edit("Wa'alaikumussalam My Brother") @register(outgoing=True, pattern='^.l(?: |$)(.*)') async def typewriter(typew): typew.pattern_match.group(1) - await typew.edit("Wa'alaikumussalam") + await typew.edit("Wa'alaikumussalam My Brother") CMD_HELP.update({ From 647a37b61ee6aa30a3dd3f6241e99daa307ead5d Mon Sep 17 00:00:00 2001 From: TukangBak <79056360+TukangBak@users.noreply.github.com> Date: Wed, 24 Feb 2021 14:34:33 +0000 Subject: [PATCH 2/2] Delete salam.py --- userbot/modules/salam.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 userbot/modules/salam.py diff --git a/userbot/modules/salam.py b/userbot/modules/salam.py deleted file mode 100644 index 453db8d9..00000000 --- a/userbot/modules/salam.py +++ /dev/null @@ -1,40 +0,0 @@ -from platform import uname -from userbot import ALIVE_NAME, CMD_HELP -from userbot.events import register - -# ================= CONSTANT ================= -DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else uname().node -# ============================================ - - -@register(outgoing=True, pattern='^.P(?: |$)(.*)') -async def typewriter(typew): - typew.pattern_match.group(1) - await typew.edit("Assalamu'alaikum My Brother") - - -@register(outgoing=True, pattern='^.p(?: |$)(.*)') -async def typewriter(typew): - typew.pattern_match.group(1) - await typew.edit("Assalamu'alaikum My Brother") - - -@register(outgoing=True, pattern='^.L(?: |$)(.*)') -async def typewriter(typew): - typew.pattern_match.group(1) - await typew.edit("Wa'alaikumussalam My Brother") - - -@register(outgoing=True, pattern='^.l(?: |$)(.*)') -async def typewriter(typew): - typew.pattern_match.group(1) - await typew.edit("Wa'alaikumussalam My Brother") - - -CMD_HELP.update({ - "salam": - "`.P`\ -\nUsage: Untuk Memberi salam.\ -\n\n`.L`\ -\nUsage: Untuk Menjawab Salam." -})