Add ctx to globals
This commit is contained in:
parent
a4eec8c138
commit
bbd29a6f11
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue