Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -83,11 +83,17 @@ async def ai(ctx, *, input_text: str):
|
|
83 |
api_name="/chat"
|
84 |
)
|
85 |
|
86 |
-
#
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
88 |
except Exception as e:
|
89 |
await ctx.send(f"An error occurred: {str(e)}")
|
90 |
|
|
|
91 |
@bot.command()
|
92 |
async def verse(ctx):
|
93 |
"""Returns a random Bible verse."""
|
|
|
83 |
api_name="/chat"
|
84 |
)
|
85 |
|
86 |
+
# Create an embed with the AI's response
|
87 |
+
embed = discord.Embed(title="AI Response", description=result, color=discord.Color.green())
|
88 |
+
embed.add_field(name="Info", value="Session resets every `10` messages!\nModel Name: `Mistral 7B`", inline=False)
|
89 |
+
embed.set_footer(text="Created by Cosmos")
|
90 |
+
|
91 |
+
# Reply with the embed
|
92 |
+
await ctx.send(embed=embed)
|
93 |
except Exception as e:
|
94 |
await ctx.send(f"An error occurred: {str(e)}")
|
95 |
|
96 |
+
|
97 |
@bot.command()
|
98 |
async def verse(ctx):
|
99 |
"""Returns a random Bible verse."""
|