mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 23:24:18 +02:00
Added and updated repositories 2025-08-10 01:17:09
This commit is contained in:
37
mead0wsss/mead0wsMods/RussianRoulette.py
Normal file
37
mead0wsss/mead0wsMods/RussianRoulette.py
Normal file
@@ -0,0 +1,37 @@
|
||||
__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('😄 Выжил! Остаюсь в чате.')
|
||||
Reference in New Issue
Block a user