Compare commits

...

5 Commits

2 changed files with 8 additions and 4 deletions

View File

@@ -41,7 +41,11 @@ class YarnCog(LionCog):
@LionCog.listener("on_reaction_remove")
async def lilac_unconfirms(self, reaction: discord.Reaction, user: discord.User):
if reaction.me and reaction.count == 1:
if (
reaction.me
and reaction.count == 1
and reaction.message.author.id != self.bot.user.id
):
await reaction.remove(self.bot.user)
@cmds.hybrid_command(name="voicestate")
@@ -100,7 +104,7 @@ class YarnCog(LionCog):
.group_by("userid")
.with_no_adapter()
)
leaderboard = [(row["userid"], row["total_time"]) for row in await query]
leaderboard = [(row["userid"], int(row["total_time"])) for row in await query]
# Format for display and pager
# First collect names
@@ -127,4 +131,4 @@ class YarnCog(LionCog):
title = "Voice Leaderboard"
pages = paginate_list(lb_strings, block_length=page_len, title=title)
await ctx.pager(pages)
await pager(ctx, pages)