feat: Add custom addons and flatten repository

This commit is contained in:
Ubuntu
2025-06-18 01:22:00 +00:00
parent d07ff4c694
commit 156d79ff32
236 changed files with 15985 additions and 0 deletions

39
addons/typing.py Normal file
View File

@@ -0,0 +1,39 @@
# (c) Shrimadhav U.K
# aka Spechide
#
# Ported for Ultroid - UserBot
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
"""
✘ Commands Available -
• `{i}type <msg>`
Edits the Message and shows like someone is typing.
"""
import asyncio
from . import *
@ultroid_cmd(pattern="type ?(.*)", fullsudo=True)
async def _(event):
input_str = event.pattern_match.group(1)
if not input_str:
return await event.eor("Give me something to type !")
shiiinabot = "\u2060" * 602
okla = await event.eor(shiiinabot)
typing_symbol = "|"
previous_text = ""
await okla.edit(typing_symbol)
await asyncio.sleep(0.4)
for character in input_str:
previous_text = previous_text + "" + character
typing_text = previous_text + "" + typing_symbol
await okla.edit(typing_text)
await asyncio.sleep(0.4)
await okla.edit(previous_text)
await asyncio.sleep(0.4)