✨ Converted hangman to use buttons
This commit is contained in:
@ -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."""
|
||||
|
@ -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."""
|
||||
|
Reference in New Issue
Block a user