mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Handling of over 2k characters leaderboard
This commit is contained in:
parent
4be9757404
commit
7b04dac317
@ -140,7 +140,10 @@ class Economy:
|
||||
highscore += str(id[1]["balance"]) + "\n"
|
||||
place += 1
|
||||
if highscore:
|
||||
if len(highscore) < 1985:
|
||||
await self.bot.say("```py\n"+highscore+"```")
|
||||
else:
|
||||
await self.bot.say("The leaderboard is too big to be displayed. Try with a lower <top> parameter.")
|
||||
else:
|
||||
await self.bot.say("There are no accounts in the bank.")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user