Skip to content

Commit

Permalink
Merge pull request FRCDiscord#478 from GrahamSH-LLK/master
Browse files Browse the repository at this point in the history
oh my god i'm dumb
  • Loading branch information
WaterGame2023 authored Jul 28, 2024
2 parents 8d336db + 58d4710 commit cdefedc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dozer/cogs/firstqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ async def frcrule(self, ctx: DozerContext, *, rule: str):
page = 1
for currRule in json_parsed["data"]:
currEmbed = createRuleEmbed(currRule["text"], currRule["textContent"])
currEmbed.set_image(url=f"https://imagen.frctools.com/rule/{currRule['text']}/image.png")
currEmbed.set_footer(text=f"Page {page} of 5")
embeds.append(currEmbed)
page += 1

await paginate(ctx, embeds)
return
Expand Down

0 comments on commit cdefedc

Please sign in to comment.