Use the same embed for response and edits

This commit is contained in:
Nexus 2024-04-14 18:51:48 +01:00
parent f29e80eb95
commit da96d818a3
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -954,12 +954,12 @@ class Ollama(commands.Cog):
)
messages = self.history.get_history(thread)
embed = discord.Embed(description=">>> ")
embed = discord.Embed(description="*waiting...*")
embed.add_field(
name="\u200b",
value="[in reply to message from {0.author.display_name}]({0.jump_url})".format(message),
)
await ctx.respond(embed=discord.Embed(description="*waiting...*"))
await ctx.respond(embed=embed)
last_edit = time.time()
with client.new_chat("orca-mini:3b", messages) as handler:
async for ln in handler: