Changed up leaderboard to print just the first 10
This commit is contained in:
parent
57c8b0271a
commit
9c03d61439
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue