Files
Main-tech/cogs/coins.py
T
2023-04-23 18:38:54 +03:00

20 lines
552 B
Python

from disnake.ext import commands
import random
import asyncio
class coins(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command()
async def coins(self, ctx):
coin = ["Орел", "Решка"]
result = random.choice(coin)
await ctx.send(f"Орел или решка? Угадайте! Результат будет через 3 секунды...")
await asyncio.sleep(3)
await ctx.send(f"Результат: {result}!")
def setup(bot):
bot.add_cog(coins(bot))