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

View File

@ -72,7 +72,7 @@ class MiscCog(commands.Cog):
@cog_ext.cog_slash(**params["wiki"])
async def wiki(self, ctx: SlashContext, wiki_page=""):
"""Get a page on a fandom wiki."""
await self.bot.other.findWikiPage(ctx, page)
await self.bot.other.findWikiPage(ctx, wiki_page)
@cog_ext.cog_slash(**params["add_movie"])
async def add_movie(self, ctx: SlashContext, movie):