Update dev.py

This commit is contained in:
yasirarism 2022-12-21 07:39:29 +07:00 committed by GitHub
parent ea2c267eaf
commit a9f2404462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,10 +127,9 @@ async def evaluation_cmd_t(_, m):
async def aexec(code, client, message):
p = print
exec(
"async def __aexec(client, message): "
+ "".join(f"\n {l_}" for l_ in code.split("\n"))
+ "".join(f"\n p = print {l_}" for l_ in code.split("\n"))
)
return await locals()["__aexec"](client, message)