From 894b1a3714667f3ff5f2bfcff3ffa83cd33e467c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 17:56:41 -0500 Subject: [PATCH] fix(bible): fixed bible verses being returned as html --- bible/bible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bible/bible.py b/bible/bible.py index a4fd727..5a3b8ca 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -39,7 +39,8 @@ class Bible(commands.Cog): """Get a Bible passage from the API.bible API.""" url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}/passages/{passage_id}" headers = await self.bot.get_shared_api_tokens("api.bible") - async with self.session.get(url, headers=headers) as response: + query = {"content_type": "text", "include-chapter-numbers": False, "include-verse-numbers": False, "include-verse-spans": False} + async with self.session.get(url, headers=headers, params=query) as response: data = await response.json() return data["data"]