24 lines
655 B
Python
24 lines
655 B
Python
from discord import ApplicationContext, Cog, option, slash_command
|
|
|
|
from classes.pycord_bot import PycordBot
|
|
|
|
|
|
class Guess(Cog):
|
|
"""Cog with the guessing command."""
|
|
|
|
def __init__(self, bot: PycordBot):
|
|
self.bot: PycordBot = bot
|
|
|
|
# TODO Implement the command
|
|
@slash_command(
|
|
name="guess",
|
|
description="Propose an answer to the current event stage",
|
|
)
|
|
@option("answer", description="An answer to the current stage")
|
|
async def command_guess(self, ctx: ApplicationContext, answer: str) -> None:
|
|
await ctx.respond("Not implemented.")
|
|
|
|
|
|
def setup(bot: PycordBot) -> None:
|
|
bot.add_cog(Guess(bot))
|