mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Prevent the embed growing too large
This commit is contained in:
parent
e936f9a4e3
commit
558a76a3af
1 changed files with 6 additions and 0 deletions
|
@ -1957,6 +1957,12 @@ class OtherCog(commands.Cog):
|
|||
await msg.edit(content=content, embed=output, view=view)
|
||||
if self.ollama_locks[msg].is_set():
|
||||
return await msg.edit(content="Aborted.", embed=output, view=None)
|
||||
if len(output.description) >= 4000:
|
||||
output.add_field(
|
||||
name="Aborting early",
|
||||
value="Output exceeded 4000 characters."
|
||||
)
|
||||
break
|
||||
|
||||
def get_time_spent(nanoseconds: int) -> str:
|
||||
hours, minutes, seconds = 0, 0, 0
|
||||
|
|
Loading…
Reference in a new issue