mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 07:04:19 +02:00
Commited backup
This commit is contained in:
19
Ijidishurka/modules/rand.py
Normal file
19
Ijidishurka/modules/rand.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import random
|
||||
from .. import loader
|
||||
from telethon.tl.types import Message
|
||||
|
||||
|
||||
@loader.tds
|
||||
class кругляш(loader.Module):
|
||||
"""Подпишись на канал @modwini"""
|
||||
|
||||
strings = {"name": "кругляш"}
|
||||
|
||||
async def krcmd(self, message: Message):
|
||||
"""Кидает рандом видео сообщение из канала @kruglishik"""
|
||||
if message.out:
|
||||
await message.delete()
|
||||
|
||||
await message.respond(
|
||||
f'<a href="https://t.me/kruglishik/{random.randint(6, 44)}"></a>',
|
||||
)
|
||||
Reference in New Issue
Block a user