Skip to content

Commit

Permalink
add amount of votes to /votes
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 18, 2024
1 parent 1364f2a commit 9e777bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cogs/mogi/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,17 @@ async def votes(self, ctx: MogiApplicationContext):
voting_message = await ctx.channel.fetch_message(ctx.mogi.voting_message_id)
not_voted_str = "\n".join(hasnt_voted)

votes_str = "\n".join(
[
f"{format}: {amount}"
for format, amount in ctx.mogi.votes.items()
if amount > 0
]
)

await ctx.respond(
f"{not_voted_str}\n\n{voting_message.jump_url}\nVote above!", ephemeral=True
f"{not_voted_str}\n\n{votes_str}\n\n{voting_message.jump_url}\nVote above!",
ephemeral=True,
)


Expand Down

0 comments on commit 9e777bd

Please sign in to comment.