Files
limoka/D4n13l3k00/FTG-Modules/FuckChat.py
2025-07-10 21:02:34 +03:00

71 lines
2.5 KiB
Python
Raw 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.

# .------.------.------.------.------.------.------.------.------.------.
# |D.--. |4.--. |N.--. |1.--. |3.--. |L.--. |3.--. |K.--. |0.--. |0.--. |
# | :/\: | :/\: | :(): | :/\: | :(): | :/\: | :(): | :/\: | :/\: | :/\: |
# | (__) | :\/: | ()() | (__) | ()() | (__) | ()() | :\/: | :\/: | :\/: |
# | '--'D| '--'4| '--'N| '--'1| '--'3| '--'L| '--'3| '--'K| '--'0| '--'0|
# `------`------`------`------`------`------`------`------`------`------'
#
# Copyright 2023 t.me/D4n13l3k00
# Licensed under the Creative Commons CC BY-NC-ND 4.0
#
# Full license text can be found at:
# https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
#
# Human-friendly one:
# https://creativecommons.org/licenses/by-nc-nd/4.0
# meta developer: @D4n13l3k00
import re
from asyncio import sleep
from .. import loader, utils # type: ignore
@loader.tds
class ChatFuckerMod(loader.Module):
"""Чатоёб"""
strings = {"name": "Чатоёб"}
@loader.owner
async def fccmd(self, message):
""".fc <Количество заёба> <reply to text/text>
Заебать чат (СРЁТ В ЛОГИ)
"""
reply = await message.get_reply_message()
repeat = 0
text = ""
if reply:
if utils.get_args_raw(message):
try:
if reply.text:
text = reply.text
repeat = int(utils.get_args_raw(message))
else:
await message.edit("Текста нет!")
return
except Exception:
await message.edit("<b>Err</b>")
return
else:
await message.edit("А скольо раз надо?")
return
elif utils.get_args_raw(message):
try:
repeat = int(utils.get_args_raw(message).split(" ")[0])
text = re.split(r".[a-z-0-9]{1,} [0-9]{1,} ", message.text)[1]
except Exception:
await message.edit("<b>Err</b>")
return
else:
await message.edit("А как же текст/реплай на текст?")
return
await message.delete()
for _ in range(repeat):
m = await message.client.send_message(message.to_id, text)
await sleep(0.5)
await m.delete()
await sleep(0.1)