Modified exec output

This commit is contained in:
Dusty.P 2018-06-03 23:56:26 -08:00
parent 55fb9ae3e7
commit d5e4a5dbd7

View File

@ -69,17 +69,9 @@ class Repl:
await ctx.message.add_reaction('') await ctx.message.add_reaction('')
except Exception: except Exception:
pass pass
if ret is None: output = f'{value}\nReturned: {ret}'
if value: for page in paginate(output):
for page in paginate(value): await ctx.send(page)
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):
await ctx.send(page)
@commands.command(hidden=True) @commands.command(hidden=True)
async def repl(self, ctx): async def repl(self, ctx):