mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-16 14:34:17 +02:00
23 lines
631 B
Python
23 lines
631 B
Python
from .. import loader, utils
|
|
from asyncio import sleep
|
|
@loader.tds
|
|
class PrintMod(loader.Module):
|
|
"""Аналог модуля typewriter"""
|
|
strings = {"name": "print"}
|
|
@loader.owner
|
|
async def printcmd(self, message):
|
|
""".print <text or reply>"""
|
|
text = utils.get_args_raw(message)
|
|
if not text:
|
|
reply = await message.get_reply_message()
|
|
if not reply or not reply.message:
|
|
await message.edit("<b>Текста нет!</b>")
|
|
return
|
|
text = reply.message
|
|
out = ""
|
|
for ch in text:
|
|
out += ch
|
|
if ch not in [" ", "\n"]:
|
|
await message.edit(out+"\u2060")
|
|
await sleep(0.3)
|
|
|