Skip to content

Commit

Permalink
fix token scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed May 14, 2024
1 parent bcd92ac commit 7be8299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/sysmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.')

Expand Down

0 comments on commit 7be8299

Please sign in to comment.