forked from blizzthewolf/SeaCogs
fix(bible): hardcoded some stuff
This commit is contained in:
parent
bf700f138c
commit
c196cca6c2
1 changed files with 2 additions and 3 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue