From 5652e13ad77be221ec633424c0b2ac648cd4d809 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 18:23:00 -0500 Subject: [PATCH] fix(bible): remove pilcrows --- bible/bible.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index ab5bd52..c714120 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -34,7 +34,7 @@ class Bible(commands.Cog): books = await self._get_books(bible_id) for book in books: if book_name == book['abbreviation'] or book_name == book['name']: - return book['id'], book['name'] + return book['id'] raise ValueError(f"Book {book_name} not found.") async def _get_passage(self, bible_id: str, passage_id: str) -> dict: @@ -60,7 +60,7 @@ class Bible(commands.Cog): """Core command for the Bible cog.""" @bible.command(name="verse") - async def bible_verse(self, ctx: commands.Context, book: str, chapter: int, verse: int): + async def bible_verse(self, ctx: commands.Context, book: str, chapter: int, verse: int) -> str: """Get a Bible verse.""" bible_id = await self.config.bible() try: @@ -80,7 +80,7 @@ class Bible(commands.Cog): bible_id = await self.config.bible() try: - book_id, book_name = await self.translate_book_name(bible_id, book) + book_id = await self.translate_book_name(bible_id, book) except ValueError as e: await ctx.send(str(e)) return @@ -91,5 +91,5 @@ class Bible(commands.Cog): passage = await self._get_passage(bible_id, f"{book_id}.{from_verse}-{book_id}.{to_verse}") - embed = Embed(title=f"{book_name} {passage['reference']}", description=passage["content"], color=await self.bot.get_embed_color(ctx.channel)) + embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('ΒΆ ', ''), color=await self.bot.get_embed_color(ctx.channel)) await ctx.send(embed=embed)