From 899bfc7bc0c825986b66dd248a5e4a2a18d4aaca Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 26 May 2025 03:54:34 -0400 Subject: [PATCH] Rename leaderboard command to globalboard for clarity and consistency. Update related command references and help messages to reflect the new naming convention, enhancing user experience when accessing global leaderboard features. --- leaderboard/leaderboard.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/leaderboard/leaderboard.py b/leaderboard/leaderboard.py index 5bbf339..77abde4 100644 --- a/leaderboard/leaderboard.py +++ b/leaderboard/leaderboard.py @@ -92,13 +92,13 @@ class Leaderboard(commands.Cog): log.error(f"Error updating points: {e}") return False - @commands.group(name="leaderboard", aliases=["lb"]) - async def leaderboard(self, ctx: commands.Context): - """Leaderboard commands.""" + @commands.group(name="globalboard", aliases=["glb"]) + async def globalboard(self, ctx: commands.Context): + """Global leaderboard commands.""" if ctx.invoked_subcommand is None: await ctx.send_help(ctx.command) - @leaderboard.command(name="show") + @globalboard.command(name="show") async def show_leaderboard(self, ctx: commands.Context, page: int = 1): """Show the global leaderboard.""" async with ctx.typing(): @@ -126,12 +126,12 @@ class Leaderboard(commands.Cog): lines.append(f"{i}. {username}: {points:,} points") header = f"🏆 Global Leaderboard (Page {page}/{len(pages)})" - footer = f"Use {ctx.prefix}leaderboard show to view other pages" + footer = f"Use {ctx.prefix}globalboard show to view other pages" content = box("\n".join([header, *lines, "", footer]), lang="md") await ctx.send(content) - @leaderboard.command(name="points") + @globalboard.command(name="points") async def check_points(self, ctx: commands.Context, member: commands.MemberConverter = None): """Check your points or another member's points.""" member = member or ctx.author