mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-17 14:54:18 +02:00
Commited backup
This commit is contained in:
23
KeyZenD/modules/print.py
Normal file
23
KeyZenD/modules/print.py
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user