Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def truncate_response(response: str) -> str:
|
|
| 37 |
return response
|
| 38 |
|
| 39 |
intents = discord.Intents.all()
|
| 40 |
-
bot = commands.Bot(command_prefix="$", intents=intents)
|
| 41 |
|
| 42 |
@bot.command()
|
| 43 |
async def uptime(ctx):
|
|
@@ -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']} - {verse['text']}"
|
| 66 |
else:
|
| 67 |
passage = "Unable to fetch Bible verse"
|
| 68 |
|
|
@@ -81,7 +81,7 @@ async def cmds(ctx):
|
|
| 81 |
bot_info = f"Bot Name: {bot.user.name}\nBot ID: {bot.user.id}"
|
| 82 |
|
| 83 |
# Create an embed
|
| 84 |
-
embed = discord.Embed(title="Bot
|
| 85 |
embed.add_field(name="Commands", value="\n".join(command_list), inline=False)
|
| 86 |
embed.add_field(name="Bot Information", value=bot_info, inline=False)
|
| 87 |
embed.set_footer(text="Created by Cosmos")
|
|
|
|
| 37 |
return response
|
| 38 |
|
| 39 |
intents = discord.Intents.all()
|
| 40 |
+
bot = commands.Bot(command_prefix="$", intents=intents, help_command=None)
|
| 41 |
|
| 42 |
@bot.command()
|
| 43 |
async def uptime(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']}** - /n{verse['text']}"
|
| 66 |
else:
|
| 67 |
passage = "Unable to fetch Bible verse"
|
| 68 |
|
|
|
|
| 81 |
bot_info = f"Bot Name: {bot.user.name}\nBot ID: {bot.user.id}"
|
| 82 |
|
| 83 |
# Create an embed
|
| 84 |
+
embed = discord.Embed(title="Bot prefix: $", color=discord.Color.blue())
|
| 85 |
embed.add_field(name="Commands", value="\n".join(command_list), inline=False)
|
| 86 |
embed.add_field(name="Bot Information", value=bot_info, inline=False)
|
| 87 |
embed.set_footer(text="Created by Cosmos")
|