Some cool stuff
This commit is contained in:
@ -98,6 +98,23 @@ class HangmanCog(commands.Cog):
|
||||
"""Start a game of hangman."""
|
||||
await self.bot.games.hangman.start(ctx)
|
||||
|
||||
class WordleCog(commands.Cog):
|
||||
"""Contains all the wordle commands."""
|
||||
|
||||
def __init__(self, bot):
|
||||
"""Initialize the cog."""
|
||||
self.bot = bot
|
||||
|
||||
@cog_ext.cog_subcommand(**params["wordle_start"])
|
||||
async def wordle_start(self, ctx, letters = 5, hard = False):
|
||||
"""Start a game of wordle."""
|
||||
await self.bot.games.wordle.start(ctx, letters, hard)
|
||||
|
||||
@cog_ext.cog_subcommand(**params["wordle_guess"])
|
||||
async def wordle_guess(self, ctx, guess):
|
||||
"""Start a game of wordle."""
|
||||
await self.bot.games.wordle.guess(ctx, guess)
|
||||
|
||||
|
||||
class HexCog(commands.Cog):
|
||||
"""Contains all the hex commands."""
|
||||
@ -145,3 +162,4 @@ def setup(bot):
|
||||
bot.add_cog(ConnectFourCog(bot))
|
||||
bot.add_cog(HangmanCog(bot))
|
||||
bot.add_cog(HexCog(bot))
|
||||
bot.add_cog(WordleCog(bot))
|
||||
|
Reference in New Issue
Block a user