fix(bible): remove pilcrows

This commit is contained in:
Seaswimmer 2024-02-01 18:23:00 -05:00
parent 1c8037274b
commit 5652e13ad7
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

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