-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextra.py
120 lines (95 loc) · 3.13 KB
/
extra.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import asyncio, subprocess
import time, re, io
from userbot import bot, BOTLOG, BOTLOG_CHATID, CMD_HELP
from telethon import events, functions, types
from telethon.events import StopPropagation
from telethon.tl.functions.messages import ExportChatInviteRequest
from telethon.tl.functions.contacts import BlockRequest
from telethon.tl.functions.channels import LeaveChannelRequest, CreateChannelRequest, DeleteMessagesRequest
from collections import deque
from telethon.tl.functions.users import GetFullUserRequest
from userbot.events import register
from userbot.utils import admin_cmd
@borg.on(admin_cmd("leave$"))
async def leave(e):
if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"):
await e.edit("`I iz Leaving dis Lol Group kek!`")
time.sleep(3)
if '-' in str(e.chat_id):
await bot(LeaveChannelRequest(e.chat_id))
else:
await e.edit('`But Boss! This is Not A Chat`')
@borg.on(admin_cmd(";__;$"))
#@register(outgoing=True, pattern="^;__;$")
async def fun(e):
t = ";__;"
for j in range(10):
t = t[:-1] + "_;"
await e.edit(t)
@borg.on(admin_cmd("yo$"))
#@register(outgoing=True, pattern="^yo$")
async def Ooo(e):
t = "yo"
for j in range(15):
t = t[:-1] + "oo"
await e.edit(t)
@borg.on(admin_cmd("Oof$"))
#@register(outgoing=True, pattern="^Oof$")
async def Oof(e):
t = "Oof"
for j in range(15):
t = t[:-1] + "of"
await e.edit(t)
@borg.on(admin_cmd("ccry$"))
#@register(outgoing=True, pattern="^.cry$")
async def cry(e):
if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"):
await e.edit("(;´༎ຶД༎ຶ)")
@borg.on(admin_cmd("fp$"))
#@register(outgoing=True, pattern="^.fp$")
async def facepalm(e):
if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"):
await e.edit("🤦♂")
@borg.on(admin_cmd("moon$"))
#@register(outgoing=True, pattern="^.mmoon$")
async def _(event):
if event.fwd_from:
return
deq = deque(list("🌗🌘🌑🌒🌓🌔🌕🌖"))
for _ in range(32):
await asyncio.sleep(0.1)
await event.edit("".join(deq))
deq.rotate(1)
@borg.on(admin_cmd("heart$"))
#@register(outgoing=True, pattern="^.heart$")
async def _(event):
if event.fwd_from:
return
deq = deque(list("❤️🧡💛💚💙💜🖤"))
for _ in range(32):
await asyncio.sleep(0.1)
await event.edit("".join(deq))
deq.rotate(1)
@borg.on(admin_cmd("fap$"))
#@register(outgoing=True, pattern="^.fap$")
async def _(event):
if event.fwd_from:
return
deq = deque(list("🍆✊🏻💦"))
for _ in range(32):
await asyncio.sleep(0.1)
await event.edit("".join(deq))
deq.rotate(1)
CMD_HELP.update({"extra":
".leave Leave a Chat"
"\n\n.;__; You try it!"
"\n\n.cry Cry"
"\n\n.fp Send face palm emoji."
"\n\n.moon Bot will send a cool moon animation."
"\n\n.clock Bot will send a cool clock animation."
"\n\n.myusernames List of Usernames owned by you."
"\n\n.oof Same as ;__; but ooof"
"\n\n.earth Sends Kensar Earth animation"
"\n\n.heart Try and you'll get your emotions back"
"\n\n.fap Faking orgasm"
})