mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 23:24:18 +02:00
Commited backup
This commit is contained in:
41
KeyZenD/modules/заёбушка2.0.py
Normal file
41
KeyZenD/modules/заёбушка2.0.py
Normal file
@@ -0,0 +1,41 @@
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user