mirror of
https://github.com/dizedev/Main-tech.git
synced 2026-09-16 21:58:48 +00:00
edit
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user