fixed the thing

This commit is contained in:
Nikolaj
2021-10-04 12:46:01 +02:00
parent 225316ffed
commit 03393648bf
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -91,7 +91,7 @@ class Plex():
buttons.append(create_button( buttons.append(create_button(
style=ButtonStyle.red, style=ButtonStyle.red,
label="X", label="X",
custom_id=encode_id(["plex", "movie", ""]) custom_id=encode_id(["plex", "movie", "x"])
) )
) )
@ -114,7 +114,7 @@ class Plex():
if not edit_message: if not edit_message:
await message.delete() await message.delete()
if imdb_id == "": if imdb_id == "X":
self.bot.log("Did not find what the user was searching for") self.bot.log("Did not find what the user was searching for")
message_text = "Try searching for the IMDB id" message_text = "Try searching for the IMDB id"
else: else:
@ -229,7 +229,7 @@ class Plex():
buttons.append(create_button( buttons.append(create_button(
style=ButtonStyle.red, style=ButtonStyle.red,
label="X", label="X",
custom_id=encode_id(["plex", "show", ""]) custom_id=encode_id(["plex", "show", "x"])
) )
) )
@ -246,7 +246,7 @@ class Plex():
async def add_show(self, message, imdb_id, edit_message = True): async def add_show(self, message, imdb_id, edit_message = True):
"""Add the requested show to Plex.""" """Add the requested show to Plex."""
if imdb_id == "": if imdb_id == "X":
self.bot.log("Did not find what the user was searching for") self.bot.log("Did not find what the user was searching for")
message_text = "Try searching for the IMDB id" message_text = "Try searching for the IMDB id"
else: else: