Converted hangman to use buttons

This commit is contained in:
NikolajDanger
2021-08-19 15:37:02 +02:00
parent 98988efa4b
commit b8a2f6022e
7 changed files with 297 additions and 241 deletions

View File

@ -29,11 +29,6 @@ class EventCog(commands.Cog):
"""Log when an error occurs."""
await self.bot.error_handler.on_error(method)
@commands.Cog.listener()
async def on_reaction_add(self, reaction, user):
"""Handle when someone reacts to a message."""
await self.bot.event_handler.on_reaction_add(reaction, user)
@commands.Cog.listener()
async def on_component(self, ctx):
"""Handle when someone reacts to a message."""

View File

@ -105,11 +105,6 @@ class ConnectFourCog(commands.Cog):
"""Start a game of connect four against Gwendolyn."""
await self.bot.games.connect_four.start(ctx, difficulty)
@cog_ext.cog_subcommand(**params["connect_four_surrender"])
async def connect_four_surrender(self, ctx):
"""Surrender the game of connect four."""
await self.bot.games.connect_four.surrender(ctx)
class HangmanCog(commands.Cog):
"""Contains all the hangman commands."""