Ok so I want to make like a sub-command in nextcord using python
it will be like this:
Me: .question
Bot: How many centimeters is in 1 meter?
Me: 100 cm
Bot: Correct!
Here is my code currently...
from nextcord.ext import commands
class Fun(commands.Cog, name="Fun Cog"):
def __init__(self, bot:commands.Bot):
self.bot = bot
@commands.command(aliases = ["q/a"])
async def question(self, ctx: commands.Context):
await ctx.send("How many centimeters is in 1 meter?")
def setup(bot: commands.Bot):
bot.add_cog(Fun(bot))
Any ideas?