add local leaderboard for mobkills
@@ -999,7 +999,10 @@ class Econ(commands.Cog):
pillages_local = [u for u in pillages if ctx.guild.get_member(u[0])]
lb_local = await self.leaderboard_logic(pillages_local, ctx.author.id, '\n`{0}.` **{0}**{1} {0}'.format('{}', self.d.emojis.emerald))
- embed = discord.Embed(color=self.d.cc, description=lb, title=ctx.l.econ.lb.lb_pil.format(self.d.emojis.emerald))
+ embed = discord.Embed(color=self.d.cc, title=ctx.l.econ.lb.lb_pil.format(self.d.emojis.emerald))
+ embed.add_field(name=ctx.l.econ.lb.local, value=lb_local)
+ embed.add_field(name=ctx.l.econ.lb.global, value=lb_global)
+
await ctx.send(embed=embed)
@leaderboards.command(name='mobkills', aliases=['kil', 'kills', 'kill', 'bonk'])
@@ -1007,9 +1010,15 @@ class Econ(commands.Cog):
kills = [(r[0], r[1]) for r in await self.db.mass_fetch_leaderboard('mobs_killed')]
kills = sorted(kills, key=(lambda tup: tup[1]), reverse=True)
- lb = await self.leaderboard_logic(kills, ctx.author.id, '\n`{0}.` **{0}**{1} {0}'.format('{}', self.d.emojis.stevegun))
+ lb_global = await self.leaderboard_logic(kills, ctx.author.id, '\n`{0}.` **{0}**{1} {0}'.format('{}', self.d.emojis.stevegun))
+
+ kills_local = [u for u in kills if ctx.guild.get_member(u[0])]
+ lb_local = await self.leaderboard_logic(kills_local, ctx.author.id, '\n`{0}.` **{0}**{1} {0}'.format('{}', self.d.emojis.stevegun))
+
+ embed = discord.Embed(color=self.d.cc, title=ctx.l.econ.lb.lb_kil.format(self.d.emojis.stevegun))
+ embed.add_field(name=ctx.l.econ.lb.local, value=lb_local)
+ embed.add_field(name=ctx.l.econ.lb.global, value=lb_global)
- embed = discord.Embed(color=self.d.cc, description=lb, title=ctx.l.econ.lb.lb_kil.format(self.d.emojis.stevegun))
await ctx.send(embed=embed)
@leaderboards.command(name='bees', aliases=['jarofbees', 'jarsofbees'])
