Fixed /config show, added /event show, added stubs for /stage and /guess
This commit is contained in:
23
cogs/guess.py
Normal file
23
cogs/guess.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from discord import Cog, slash_command, option, ApplicationContext
|
||||
|
||||
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))
|
Reference in New Issue
Block a user