diff --git a/jarvis/cogs/dev.py b/jarvis/cogs/dev.py index bb90238..5160580 100644 --- a/jarvis/cogs/dev.py +++ b/jarvis/cogs/dev.py @@ -283,9 +283,9 @@ class DevCog(commands.Cog): } try: - exec(f"async def func():{code}", args) + exec(f"async def func():{code}", globals(), locals()) a = time() - response = await eval("func()", args) + response = await eval("func()", globals(), locals()) if response is None or isinstance(response, discord.Message): del args, code return