fix(bible): hardcoded some stuff
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 15s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
Seaswimmer 2024-02-01 18:01:26 -05:00
parent bf700f138c
commit c196cca6c2
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -37,10 +37,9 @@ class Bible(commands.Cog):
async def _get_passage(self, bible_id: str, passage_id: str) -> dict:
"""Get a Bible passage from the API.bible API."""
url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}/passages/{passage_id}"
url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}-01/passages/{passage_id}?content-type=text&include-notes=false&include-titles=false&include-chapter-numbers=false&include-verse-numbers=true&include-verse-spans=false&use-org-id=false"
headers = await self.bot.get_shared_api_tokens("api.bible")
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:
async with self.session.get(url, headers=headers) as response:
data = await response.json()
return data["data"]