fix(seautils): added a bad solution to a stupid problem
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 38s

This commit is contained in:
Seaswimmer 2024-05-28 21:22:30 -04:00
parent ac5d4df36b
commit 861a03719b
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -211,6 +211,26 @@ class SeaUtils(commands.Cog):
content = []
for pre_tag in pre_tags:
text = convert_rfc_references(md(pre_tag), number)
if len(text) > 4096:
text1 = text[:4096]
text2 = text[4096:]
if await ctx.embed_requested():
embed = Embed(
title=f"RFC Document {number}",
description=text1,
color=await ctx.embed_color()
)
content.append(embed)
embed2 = Embed(
title=f"RFC Document {number}",
description=text2,
color=await ctx.embed_color()
)
content.append(embed2)
else:
content.append(text1)
content.append(text2)
else:
if await ctx.embed_requested():
embed = Embed(
title=f"RFC Document {number}",