Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ async def on_member_join(member):
|
|
160 |
message_content = (
|
161 |
f"Welcome to the server, {member.name}!\n\n"
|
162 |
f"Hope you have a great stay here, {member.mention}!\n\n"
|
163 |
-
f"Here are some channels you might find interesting:\n{channels_message}"
|
164 |
)
|
165 |
|
166 |
# Send a direct message to the user
|
@@ -175,6 +175,8 @@ async def on_member_join(member):
|
|
175 |
if response.status_code == 200:
|
176 |
verse = response.json()[0]
|
177 |
passage = f"{verse['bookname']} {verse['chapter']}:{verse['verse']} - {verse['text']}"
|
|
|
|
|
178 |
else:
|
179 |
passage = "Unable to fetch Bible verse"
|
180 |
|
@@ -191,6 +193,7 @@ async def on_member_join(member):
|
|
191 |
await welcome_channel.send(embed=embed)
|
192 |
|
193 |
|
|
|
194 |
@bot.command()
|
195 |
async def search(ctx, *, query: str):
|
196 |
"""Search for a bible verse."""
|
|
|
160 |
message_content = (
|
161 |
f"Welcome to the server, {member.name}!\n\n"
|
162 |
f"Hope you have a great stay here, {member.mention}!\n\n"
|
163 |
+
f"Here are some channels you might find interesting:\n{channels_message}\n\n"
|
164 |
)
|
165 |
|
166 |
# Send a direct message to the user
|
|
|
175 |
if response.status_code == 200:
|
176 |
verse = response.json()[0]
|
177 |
passage = f"{verse['bookname']} {verse['chapter']}:{verse['verse']} - {verse['text']}"
|
178 |
+
# Include the Bible verse in the direct message content
|
179 |
+
message_content += f"Random Bible Verse:\n{passage}"
|
180 |
else:
|
181 |
passage = "Unable to fetch Bible verse"
|
182 |
|
|
|
193 |
await welcome_channel.send(embed=embed)
|
194 |
|
195 |
|
196 |
+
|
197 |
@bot.command()
|
198 |
async def search(ctx, *, query: str):
|
199 |
"""Search for a bible verse."""
|