Files
limoka/mead0wsss/mead0wsMods/RussianRoulette.py
2025-08-10 01:17:09 +00:00

38 lines
2.4 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.

__version__ = (1, 0, 0)
# ███╗░░░███╗███████╗░█████╗░██████╗░░█████╗░░██╗░░░░░░░██╗░██████╗░██████╗
# ████╗░████║██╔════╝██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║██╔════╝██╔════╝
# ██╔████╔██║█████╗░░███████║██║░░██║██║░░██║░╚██╗████╗██╔╝╚█████╗░╚█████╗░
# ██║╚██╔╝██║██╔══╝░░██╔══██║██║░░██║██║░░██║░░████╔═████║░░╚═══██╗░╚═══██╗
# ██║░╚═╝░██║███████╗██║░░██║██████╔╝╚█████╔╝░░╚██╔╝░╚██╔╝░██████╔╝██████╔╝
# ╚═╝░░░░░╚═╝╚══════╝╚═╝░░╚═╝╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝░░╚═════╝░╚═════╝░
# © Copyright 2025
# ✈ https://t.me/mead0wssMods
# scope: hikka_only
# scope: hikka_min 1.3.3
# meta developer: @mead0wssMods
# meta banner: https://x0.at/N3nB.jpg
from telethon.tl.functions.channels import LeaveChannelRequest
import asyncio
import random
from .. import loader, utils
@loader.tds
class RouletteMod(loader.Module):
"""Модуль для игры в Русскую рулетку. При поражении выкидывает с чата."""
strings = {"name": "Roulette"}
async def roulettecmd(self, message):
"""Начать игру в Русскую рулетку"""
await message.edit('😶🔫 Прикладываю пистолет к виску и медленно нажимаю курок...')
await asyncio.sleep(2)
choice = random.choice([1, 2])
if choice == 1:
await message.edit('😵 Смерть... Всем пока!')
await message.client(LeaveChannelRequest(message.chat_id))
else:
await message.edit('😄 Выжил! Остаюсь в чате.')