[V3] Utilize shorten_by (#2131)

* utilize shorten_by

otherwise you get errors

* trivia shorten_by

* warnings shorten_by

max username length is 32 characters

* black formatting
This commit is contained in:
zephyrkul
2018-09-14 17:48:31 -06:00
committed by Kowlin
parent 1a9216b522
commit 2784730f7f
3 changed files with 6 additions and 7 deletions

View File

@@ -368,7 +368,7 @@ class Trivia:
return
leaderboard = self._get_leaderboard(data, key, top)
ret = []
for page in pagify(leaderboard):
for page in pagify(leaderboard, shorten_by=10):
ret.append(await ctx.send(box(page, lang="py")))
return ret