Modified exec output
This commit is contained in:
parent
55fb9ae3e7
commit
d5e4a5dbd7
12
exts/repl.py
12
exts/repl.py
@ -69,16 +69,8 @@ class Repl:
|
||||
await ctx.message.add_reaction('✅')
|
||||
except Exception:
|
||||
pass
|
||||
if ret is None:
|
||||
if value:
|
||||
for page in paginate(value):
|
||||
await ctx.send(page)
|
||||
else:
|
||||
self._last_result = ret
|
||||
if value:
|
||||
for page in paginate(value):
|
||||
await ctx.send(page)
|
||||
for page in paginate(ret):
|
||||
output = f'{value}\nReturned: {ret}'
|
||||
for page in paginate(output):
|
||||
await ctx.send(page)
|
||||
|
||||
@commands.command(hidden=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user