Files
Ultroid-fork/addons/animations.py

47 lines
71 KiB
Python
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Ultroid Userbot
# 2020 Copyright (c)
# Animation Plugin
"""
Animation Plugin
✘ Commands Available
• `{i}kill`
• `{i}fp`
"""
import asyncio
@ultroid_cmd(pattern="kill$")
async def _(event):
animation_interval = 0.7
animation_ttl = range(0, 12)
a = await event.eor("`ready to die dude.....`")
animation_chars = [
"",
"( ・ิω・ิ)︻デ═一-->",
"---->____________",
"------>__________",
"-------->_________",
"---------->_______",
"------------>_____",
"-------------->____",
"------------------>",
"------>;(^。^)",
"( ̄ー ̄) DEAD",
"""`Targeted user killed by Headshot😈.😈.😈.😈.😈.😈.😈......`
`#Sad_Reacts_Offline`\n""",
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await a.edit(animation_chars[i % 12])
@ultroid_cmd(pattern="fp$")
async def a(e):
await e.eor("🤦‍♂")