mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Update dev.py
This commit is contained in:
parent
eabf19d866
commit
ea2c267eaf
1 changed files with 2 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ async def evaluation_cmd_t(_, m):
|
||||||
cmd = m.text.split(" ", maxsplit=1)[1]
|
cmd = m.text.split(" ", maxsplit=1)[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return await status_message.edit("__No evaluate message!__")
|
return await status_message.edit("__No evaluate message!__")
|
||||||
p = print
|
|
||||||
old_stderr = sys.stderr
|
old_stderr = sys.stderr
|
||||||
old_stdout = sys.stdout
|
old_stdout = sys.stdout
|
||||||
redirected_output = sys.stdout = io.StringIO()
|
redirected_output = sys.stdout = io.StringIO()
|
||||||
|
|
@ -127,6 +127,7 @@ async def evaluation_cmd_t(_, m):
|
||||||
|
|
||||||
|
|
||||||
async def aexec(code, client, message):
|
async def aexec(code, client, message):
|
||||||
|
p = print
|
||||||
exec(
|
exec(
|
||||||
"async def __aexec(client, message): "
|
"async def __aexec(client, message): "
|
||||||
+ "".join(f"\n {l_}" for l_ in code.split("\n"))
|
+ "".join(f"\n {l_}" for l_ in code.split("\n"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue