1
0
Fork 0
mirror of synced 2024-09-28 23:41:41 +12:00

Changed up leaderboard to print just the first 10

This commit is contained in:
Phxntxm 2016-08-21 14:49:24 -05:00
parent 57c8b0271a
commit 9c03d61439

View file

@ -74,6 +74,8 @@ class Stats:
member = discord.utils.get(ctx.message.server.members, id=member_id)
fmt += "#{}) {} (Rating: {})\n".format(count, member.display_name, stats.get('rating'))
count += 1
if count >= 10:
break
await self.bot.say("Battling leaderboard for this server:```\n{}```".format(fmt))
@commands.command(pass_context=True, no_pm=True)