Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ async def verse(ctx):
|
|
62 |
response = requests.get(bible_api_url)
|
63 |
if response.status_code == 200:
|
64 |
verse = response.json()[0]
|
65 |
-
passage = f"**{verse['bookname']} {verse['chapter']}:{verse['verse']}**
|
66 |
else:
|
67 |
passage = "Unable to fetch Bible verse"
|
68 |
|
@@ -161,7 +161,7 @@ async def search(ctx, *, query: str):
|
|
161 |
verses = response.json()
|
162 |
if verses:
|
163 |
# If verses are found, concatenate them into a single message
|
164 |
-
passage = "\n".join(f"**{verse['bookname']} {verse['chapter']}:{verse['verse']}**
|
165 |
passage = truncate_response(passage)
|
166 |
embed = discord.Embed(title=f"Search Results for '{query}'", description=passage, color=discord.Color.blue())
|
167 |
else:
|
|
|
62 |
response = requests.get(bible_api_url)
|
63 |
if response.status_code == 200:
|
64 |
verse = response.json()[0]
|
65 |
+
passage = f"**{verse['bookname']} {verse['chapter']}:{verse['verse']}** \n{verse['text']}"
|
66 |
else:
|
67 |
passage = "Unable to fetch Bible verse"
|
68 |
|
|
|
161 |
verses = response.json()
|
162 |
if verses:
|
163 |
# If verses are found, concatenate them into a single message
|
164 |
+
passage = "\n".join(f"**{verse['bookname']} {verse['chapter']}:{verse['verse']}** \n{verse['text']}" for verse in verses)
|
165 |
passage = truncate_response(passage)
|
166 |
embed = discord.Embed(title=f"Search Results for '{query}'", description=passage, color=discord.Color.blue())
|
167 |
else:
|