format and paginate return values in admin eval

This commit is contained in:
Infinidoge 2025-01-01 12:22:00 -05:00
parent fac4fec25f
commit 0093c92a7e
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -256,7 +256,7 @@ async def admin_eval(ctx, *, body: str):
paginator.add_line(line)
paginator.close_page()
if ret:
for line in str(ret).split("\n"):
for line in pprint.pformat(ret).split("\n"):
paginator.add_line(line)
paginator.close_page()