fix(bible): oops lol

This commit is contained in:
Seaswimmer 2024-02-01 18:07:55 -05:00
parent 9e8c5239fd
commit a432050056
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -38,7 +38,7 @@ class Bible(commands.Cog):
async def _get_passage(self, bible_id: str, passage_id: str) -> dict: async def _get_passage(self, bible_id: str, passage_id: str) -> dict:
"""Get a Bible passage from the API.bible API.""" """Get a Bible passage from the API.bible API."""
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" url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}/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") headers = await self.bot.get_shared_api_tokens("api.bible")
async with self.session.get(url, headers=headers) as response: async with self.session.get(url, headers=headers) as response:
data = await response.json() data = await response.json()