Skip to content

Commit

Permalink
add tabletop comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maksxpl authored Mar 28, 2024
1 parent df0903a commit 4a01aff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion abominable_intelligence/extensions/tabletop.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ async def dice(ctx: lightbulb.SlashContext) -> None:
for x in range(len(embeds)):
description = f"**{ctx.options.dice}**d**{ctx.options.sides}** | **Page Summary**: **{summary}**"
embeds[x].description = description

# send embed if it's just a one page
if sum_pages <= 1:
await ctx.respond(embeds[0])
# send navigator if there's more pages
else:
items: list[nav.NavItem] = [
nav.FirstButton(label="|<", emoji=None),
Expand Down

0 comments on commit 4a01aff

Please sign in to comment.