Files
limoka/KeyZenD/modules/заёбушка2.0.py
2025-07-10 21:02:34 +03:00

41 lines
1.2 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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.

from asyncio import sleep
from .. import loader, utils
def register(cb):
cb(ЗаёбушкаMod())
class ЗаёбушкаMod(loader.Module):
"""Заебет любого"""
strings = {'name': 'Заёбушка'}
def __init__(self):
self.name = self.strings['name']
self._me = None
self._ratelimit = []
async def заебуcmd(self, message):
""".заебу <колличество> <реплай на того, кого заебать>"""
reply = await message.get_reply_message()
if not reply:
await message.edit("<b>А кого заёбывать-то?</b>")
return
id = reply.sender_id
args = utils.get_args(message)
count = 50
if args:
if args[0].isdigit():
if int(args[0]) < 0:
count = 50
else:
count = int(args[0])
txt = '<a href="tg://user?id={}">{}</a>'
await message.edit(txt.format(id, "Я тебя заебу!"))
for _ in range(count):
await sleep(0.3)
msg = await message.client.send_message(message.to_id, txt.format(id, "Заёбушка:3"), reply_to=message)
if not msg.is_reply:
await msg.edit("<b>Остановлено!</b>")
break
await sleep(0.3)
await msg.delete()