Add ctx to globals

This commit is contained in:
Zeva Rose 2021-06-27 19:44:35 -06:00
parent a4eec8c138
commit bbd29a6f11

View file

@ -283,9 +283,9 @@ class DevCog(commands.Cog):
}
try:
exec(f"async def func():{code}", globals(), locals())
exec(f"async def func():{code}", globals() + args, locals())
a = time()
response = await eval("func()", globals(), locals())
response = await eval("func()", globals() + args, locals())
if response is None or isinstance(response, discord.Message):
del args, code
return