Added hack module
This commit is contained in:
28
hack.py
Normal file
28
hack.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
from asyncio import sleep
|
||||||
|
from userbot.events import register
|
||||||
|
|
||||||
|
|
||||||
|
@register(outgoing=True, pattern='^.hack ?(.*)')
|
||||||
|
async def fakeload(e):
|
||||||
|
inp = e.pattern_match.group(1)
|
||||||
|
load = [" ","▏","▎","▍","▌","▋","▊","▉"]
|
||||||
|
bar = ""
|
||||||
|
count = 0
|
||||||
|
await e.edit("`[Инициализация взлома...]`")
|
||||||
|
sleep(3)
|
||||||
|
await e.edit("`[Запрос в базу...]`")
|
||||||
|
sleep(2)
|
||||||
|
for i in range(13):
|
||||||
|
for division in load:
|
||||||
|
space = " " * (12 - i)
|
||||||
|
await e.edit(f"`{bar}{division}{space}[{count}%]`")
|
||||||
|
count += 1
|
||||||
|
sleep(0.3)
|
||||||
|
if count == 101:
|
||||||
|
break
|
||||||
|
bar += "█"
|
||||||
|
sleep(2)
|
||||||
|
done = "Пентагон успешно взломан!"
|
||||||
|
if inp:
|
||||||
|
done = inp
|
||||||
|
await e.edit(f"`{done}`")
|
||||||
Reference in New Issue
Block a user