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