converted hangman to buttons

This commit is contained in:
NikolajDanger
2021-08-19 13:12:15 +02:00
parent 3819e56cd6
commit 98988efa4b
8 changed files with 266 additions and 250 deletions

View File

@ -118,16 +118,11 @@ class HangmanCog(commands.Cog):
"""Initialize the cog."""
self.bot = bot
@cog_ext.cog_subcommand(**params["hangman_start"])
async def hangman_start(self, ctx):
@cog_ext.cog_slash(**params["hangman"])
async def hangman(self, ctx):
"""Start a game of hangman."""
await self.bot.games.hangman.start(ctx)
@cog_ext.cog_subcommand(**params["hangman_stop"])
async def hangman_stop(self, ctx):
"""Stop the current game of hangman."""
await self.bot.games.hangman.stop(ctx)
class HexCog(commands.Cog):
"""Contains all the hex commands."""