try new leaderboard formatting plus fix emmy lb
@@ -611,7 +611,9 @@ class Econ(commands.Cog):
user = "Deleted User "
lb_text += f"``{rank}.`` {entry[1]}{self.emerald} {str(user)[:-5]} \n"
rank += 1
- embed = discord.Embed(color=discord.Color.green(), title=f"{self.emerald}__**Emerald Leaderboard**__{self.emerald}", description=lb_text)
+ embed = discord.Embed(color=discord.Color.green(), title=f"{self.emerald}__**Emerald Leaderboard**__{self.emerald}")
+ embed.add_field(name="\uFEFF", value=lb_text)
+ embed.add_field(name="\uFEFF", value=f"You are rank ``{place}`` with {await self.db.get_balance(ctx.author.id)}{self.emerald}")
await ctx.send(embed=embed)
@leaderboard.command(name="commands", aliases=["cmds"])
@@ -632,8 +634,9 @@ class Econ(commands.Cog):
ussr = "Unknown User "
lb_text += f"``{rank}.`` {entry[1]} **Commands Issued** {str(ussr)[:-5]} \n"
rank += 1
- embed = discord.Embed(color=discord.Color.green(), title=f"__**Command Usage Leaderboard**__", description=lb_text)
- embed.add_field(name="\uFEFF", value=f"You are rank {place} with {self.g.command_leaderboard[ctx.author.id]} commands.")
+ embed = discord.Embed(color=discord.Color.green(), title=f"__**Command Usage Leaderboard**__")
+ embed.add_field(name="\uFEFF", value=lb_text)
+ embed.add_field(name="\uFEFF", value=f"You are rank ``{place}`` with ``{self.g.command_leaderboard[ctx.author.id]}`` commands.")
await ctx.send(embed=embed)
@commands.command(name="chug", aliases=["drink"])
