Some cool stuff

This commit is contained in:
Nikolaj
2022-01-28 17:08:28 +01:00
parent f838b4e62d
commit b449e453a4
8 changed files with 241 additions and 7 deletions

View File

@ -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))