cool edited files

This commit is contained in:
Alex D
2023-04-23 19:01:06 +03:00
parent 6e93ae616e
commit 98edc16962
8 changed files with 304 additions and 28 deletions
+8 -6
View File
@@ -1,20 +1,22 @@
from disnake.ext import commands
import random
import asyncio
import random
from disnake.ext import commands
class coins(commands.Cog):
class Coins(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command()
@commands.slash_command(name="супер", description='Команда, которая возвращает орла или решку.')
async def coins(self, ctx):
coin = ["Орел", "Решка"]
result = random.choice(coin)
await ctx.send(f"Орел или решка? Угадайте! Результат будет через 3 секунды...")
info = await ctx.send(f"Орел или решка? Угадайте! Результат будет через 3 секунды...")
await asyncio.sleep(3)
await ctx.send(f"Результат: {result}!")
def setup(bot):
bot.add_cog(coins(bot))
bot.add_cog(Coins(bot))