This commit is contained in:
Alex D
2023-04-24 17:45:20 +03:00
parent 56c1ebefd3
commit 4731006753
18 changed files with 371 additions and 94 deletions
+23
View File
@@ -0,0 +1,23 @@
import random
import disnake
from disnake.ext import commands
class MagicBallCommand(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command(description="Даёт верные ответы на все ваши вопросы.")
async def ball(self, ctx: disnake.AppCommandInteraction, *, question):
answers = [
"Я не знаю.",
"Да.",
"Нет.",
"Возможно.",
"Спроси позже."
]
await ctx.send(f"Ваш вопрос: {question}\nМой ответ: {random.choice(answers)}")
def setup(bot):
bot.add_cog(MagicBallCommand(bot))