mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Implement context better
This commit is contained in:
parent
21a9bcecf9
commit
a67410a46c
1 changed files with 8 additions and 6 deletions
|
@ -2143,13 +2143,15 @@ class OtherCog(commands.Cog):
|
|||
name="Timings",
|
||||
value=value
|
||||
)
|
||||
if context:
|
||||
embed.add_field(
|
||||
name="Context",
|
||||
value=f"```\n{context}\n```"[:1024],
|
||||
inline=False
|
||||
)
|
||||
await msg.edit(content=None, embed=embed, view=None)
|
||||
if context:
|
||||
await ctx.respond(
|
||||
"Context:\n"
|
||||
"```\n"
|
||||
f"{context}\n"
|
||||
"```",
|
||||
ephemeral=True
|
||||
)
|
||||
self.ollama_locks.pop(msg, None)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue