Added and updated repositories 2025-07-27 19:35:37

This commit is contained in:
github-actions[bot]
2025-07-27 19:35:37 +00:00
parent 0afc767401
commit caa5a452e0
13 changed files with 0 additions and 877 deletions

View File

@@ -1,33 +0,0 @@
__version__ = (2, 0, 0)
# meta developer: @wmodules
from .. import loader, utils
import random
from telethon.tl.types import InputMessagesFilterGif
class KomaruMod(loader.Module):
"""Достает рандомную гифку из @komarugif\n канал заменил @systemxplore, оригинальный разработчик: @wmodules"""
strings = {"name": "KomaruMod v2"}
async def client_ready(self, client, db):
self.client = client
async def komarugifcmd(self, message):
"""Рандомная гифка"""
channel = "@komarugif"
gifs = [msg async for msg in self.client.iter_messages(channel, filter=InputMessagesFilterGif)]
if not gifs:
await message.edit("<b>Нет доступных GIF-ов в канале!</b>")
return
random_gif = random.choice(gifs)
reply_to = message.reply_to_msg_id
await self.client.send_file(
message.chat_id,
random_gif,
reply_to=reply_to
)
await message.delete()