Add ctx to globals

This commit is contained in:
Zeva Rose 2021-06-27 19:45:15 -06:00
parent bbd29a6f11
commit 7bf6958897

View file

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