-
Notifications
You must be signed in to change notification settings - Fork 5
/
animations2.py
306 lines (280 loc) · 11.3 KB
/
animations2.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
import asyncio
from collections import deque
from ULTRA.utils import admin_cmd, edit_or_reply, sudo_cmd
from ULTRA import ALIVE_NAME, CMD_HELP
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Hell User"
@bot.on(admin_cmd(pattern=r"boxs$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"boxs$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
event = await edit_or_reply(event, "`boxs...`")
deq = deque(list("🟥🟧🟨🟩🟦🟪🟫⬛⬜"))
for _ in range(999):
await asyncio.sleep(0.3)
await event.edit("".join(deq))
deq.rotate(1)
@bot.on(admin_cmd(pattern=r"rain$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"rain$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
event = await edit_or_reply(event, "`Raining.......`")
deq = deque(list("🌬☁️🌩🌨🌧🌦🌥⛅🌤"))
for _ in range(48):
await asyncio.sleep(0.3)
await event.edit("".join(deq))
deq.rotate(1)
@bot.on(admin_cmd(pattern=r"deploy$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"deploy$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 3
animation_ttl = range(12)
event = await edit_or_reply(event, "`Deploying...`")
animation_chars = [
"**Heroku Connecting To Latest [Github Build](HellBoy-OP/LEGENDBOT)**",
f"**Build started by user** {DEFAULTUSER}",
f"**Deploy** `535a74f0` **by user** **{DEFAULTUSER}**",
"**Restarting Heroku Server...**",
"**State changed from up to starting**",
"**Stopping all processes with SIGTERM**",
"**Process exited with** `status 143`",
"**Starting process with command** `python3 -m stdborg`",
"**State changed from starting to up**",
"__INFO:Hêllẞø†:Logged in as 557667062__",
"__INFO:Hêllẞø†:Successfully loaded all plugins__",
"**Build Succeeded**",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 12])
@bot.on(admin_cmd(pattern=r"dump$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"dump$", allow_sudo=True))
async def _(message):
if event.fwd_from:
return
try:
obj = message.pattern_match.group(1)
if len(obj) != 3:
raise IndexError
inp = " ".join(obj)
except IndexError:
inp = "🥞 🎂 🍫"
event = await edit_or_reply(message, "`droping....`")
u, t, g, o, s, n = inp.split(), "🗑", "<(^_^ <)", "(> ^_^)>", "⠀ ", "\n"
h = [(u[0], u[1], u[2]), (u[0], u[1], ""), (u[0], "", "")]
for something in reversed(
[
y
for y in (
[
"".join(x)
for x in (
f + (s, g, s + s * f.count(""), t),
f + (g, s * 2 + s * f.count(""), t),
f[:i] + (o, f[i], s * 2 + s * f.count(""), t),
f[:i] + (s + s * f.count(""), o, f[i], s, t),
f[:i] + (s * 2 + s * f.count(""), o, f[i], t),
f[:i] + (s * 3 + s * f.count(""), o, t),
f[:i] + (s * 3 + s * f.count(""), g, t),
)
]
for i, f in enumerate(reversed(h))
)
]
):
for something_else in something:
await asyncio.sleep(0.3)
try:
await event.edit(something_else)
except errors.MessageIdInvalidError:
return
@bot.on(admin_cmd(pattern=r"fleaveme$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"fleaveme$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 1
animation_ttl = range(10)
animation_chars = [
"⬛⬛⬛\n⬛⬛⬛\n⬛⬛⬛",
"⬛⬛⬛\n⬛🔄⬛\n⬛⬛⬛",
"⬛⬆️⬛\n⬛🔄⬛\n⬛⬛⬛",
"⬛⬆️↗️\n⬛🔄⬛\n⬛⬛⬛",
"⬛⬆️↗️\n⬛🔄➡️\n⬛⬛⬛",
"⬛⬆️↗️\n⬛🔄➡️\n⬛⬛↘️",
"⬛⬆️↗️\n⬛🔄➡️\n⬛⬇️↘️",
"⬛⬆️↗️\n⬛🔄➡️\n↙️⬇️↘️",
"⬛⬆️↗️\n⬅️🔄➡️\n↙️⬇️↘️",
"↖️⬆️↗️\n⬅️🔄➡️\n↙️⬇️↘️",
]
event = await edit_or_reply(event, "fleaveme....")
await asyncio.sleep(2)
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 10])
@bot.on(admin_cmd(pattern=r"loveu$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"loveu$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.5
animation_ttl = range(70)
event = await edit_or_reply(event, "loveu")
animation_chars = [
"😀",
"👩🎨",
"😁",
"😂",
"🤣",
"😃",
"😄",
"😅",
"😊",
"☺",
"🙂",
"🤔",
"🤨",
"😐",
"😑",
"😶",
"😣",
"😥",
"😮",
"🤐",
"😯",
"😴",
"😔",
"😕",
"☹",
"🙁",
"😖",
"😞",
"😟",
"😢",
"😭",
"🤯",
"💔",
"❤",
"I Love You❤",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 35])
@bot.on(admin_cmd(pattern=r"plane$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"plane$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
event = await edit_or_reply(event, "Wait for plane...")
await event.edit("✈-------------")
await event.edit("-✈------------")
await event.edit("--✈-----------")
await event.edit("---✈----------")
await event.edit("----✈---------")
await event.edit("-----✈--------")
await event.edit("------✈-------")
await event.edit("-------✈------")
await event.edit("--------✈-----")
await event.edit("---------✈----")
await event.edit("----------✈---")
await event.edit("-----------✈--")
await event.edit("------------✈-")
await event.edit("-------------✈")
await asyncio.sleep(3)
@bot.on(admin_cmd(pattern=r"police$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"police$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.3
animation_ttl = range(12)
event = await edit_or_reply(event, "Police")
animation_chars = [
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 12])
@bot.on(admin_cmd(pattern=r"jio$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"jio$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 1
animation_ttl = range(19)
event = await edit_or_reply(event, "jio network boosting...")
animation_chars = [
"`Connecting To JIO NETWORK ....`",
"`█ ▇ ▆ ▅ ▄ ▂ ▁`",
"`▒ ▇ ▆ ▅ ▄ ▂ ▁`",
"`▒ ▒ ▆ ▅ ▄ ▂ ▁`",
"`▒ ▒ ▒ ▅ ▄ ▂ ▁`",
"`▒ ▒ ▒ ▒ ▄ ▂ ▁`",
"`▒ ▒ ▒ ▒ ▒ ▂ ▁`",
"`▒ ▒ ▒ ▒ ▒ ▒ ▁`",
"`▒ ▒ ▒ ▒ ▒ ▒ ▒`",
"*Optimising JIO NETWORK...*",
"`▒ ▒ ▒ ▒ ▒ ▒ ▒`",
"`▁ ▒ ▒ ▒ ▒ ▒ ▒`",
"`▁ ▂ ▒ ▒ ▒ ▒ ▒`",
"`▁ ▂ ▄ ▒ ▒ ▒ ▒`",
"`▁ ▂ ▄ ▅ ▒ ▒ ▒`",
"`▁ ▂ ▄ ▅ ▆ ▒ ▒`",
"`▁ ▂ ▄ ▅ ▆ ▇ ▒`",
"`▁ ▂ ▄ ▅ ▆ ▇ █`",
"**JIO NETWORK Boosted....**",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 19])
@bot.on(admin_cmd(pattern=r"solarsystem$", outgoing=True))
@bot.on(sudo_cmd(pattern=r"solarsystem$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.1
animation_ttl = range(80)
event = await edit_or_reply(event, "solarsystem")
animation_chars = [
"`◼️◼️◼️◼️◼️\n◼️◼️◼️◼️☀\n◼️◼️🌎◼️◼️\n🌕◼️◼️◼️◼️\n◼️◼️◼️◼️◼️`",
"`◼️◼️◼️◼️◼️\n🌕◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️☀\n◼️◼️◼️◼️◼️`",
"`◼️🌕◼️◼️◼️\n◼️◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️◼️\n◼️◼️◼️☀◼️`",
"`◼️◼️◼️🌕◼️\n◼️◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️◼️\n◼️☀◼️◼️◼️`",
"`◼️◼️◼️◼️◼️\n◼️◼️◼️◼️🌕\n◼️◼️🌎◼️◼️\n☀◼️◼️◼️◼️\n◼️◼️◼️◼️◼️`",
"`◼️◼️◼️◼️◼️\n☀◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️🌕\n◼️◼️◼️◼️◼️`",
"`◼️☀◼️◼️◼️\n◼️◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️◼️\n◼️◼️◼️🌕◼️`",
"`◼️◼️◼️☀◼️\n◼️◼️◼️◼️◼️\n◼️◼️🌎◼️◼️\n◼️◼️◼️◼️◼️\n◼️🌕◼️◼️◼️`",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 8])
CMD_HELP.update(
{
"animation2": """**Plugin : **`animation2`
**Commands in animation2 are **
• `.boxs`
• `.rain`
• `.deploy`
• `.dump`
• `.fleaveme`
• `.loveu`
• `.plane`
• `.police`
• `.jio`
• `.solarsystem`
**Function : **__Different kinds of animation commands check yourself for their animation .__"""
}
)