diff --git a/cogs/sysmgr.py b/cogs/sysmgr.py index a2034b27..cb0498ab 100644 --- a/cogs/sysmgr.py +++ b/cogs/sysmgr.py @@ -191,7 +191,7 @@ async def eval(self, ctx, *, body): await ctx.author.send( f'```py\n{e.__class__.__name__}: {e}\n```\nIf this is a KeyError, it is most likely a SyntaxError.') return - token_start = base64.b64encode(self.bot.user.id) + token_start = base64.b64encode(bytes(str(self.bot.user.id), 'utf-8')).decode('utf-8') try: with redirect_stdout(stdout): # ret = await func() to return output @@ -221,6 +221,7 @@ async def eval_error(self, ctx, error): await ctx.send('where code :thinking:') else: await ctx.send('Something went horribly wrong.') + raise else: await ctx.send('Only the owner can execute code.')