From f4834284a61fe1d15988f5727ed60c581d3864bb Mon Sep 17 00:00:00 2001 From: GrahamSH Date: Wed, 28 Feb 2024 18:19:41 +0000 Subject: [PATCH] use image for rule command --- dozer/cogs/firstqa.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dozer/cogs/firstqa.py b/dozer/cogs/firstqa.py index 70d39865..2312fb77 100644 --- a/dozer/cogs/firstqa.py +++ b/dozer/cogs/firstqa.py @@ -69,10 +69,6 @@ def createRuleEmbed(rulenumber, text): ) truncated_text = "```\n" + ' '.join(text[:1016].splitlines()) + "```" - embed.add_field( - name="Summary", - value=truncated_text - ) return embed @@ -163,7 +159,7 @@ async def frcrule(self, ctx: DozerContext, *, rule: str): if "error" not in json_parsed: text = json_parsed["textContent"] embed = createRuleEmbed(letter_part.upper() + number_part, text) - + embed.set_image(url=f"https://imagen.frctools.com/rule/{letter_part.upper() + number_part}/image.png") else: ephemeral = True embed.add_field(