Display which message is being replied to

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

View file

@ -955,6 +955,10 @@ class Ollama(commands.Cog):
messages = self.history.get_history(thread)
embed = discord.Embed(description=">>> ")
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...*"))
last_edit = time.time()
with client.new_chat("orca-mini:3b", messages) as handler: