mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fixed the thingy again again again!
This commit is contained in:
parent
cab865219d
commit
a1c3b77f3b
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ class Events(commands.Cog):
|
|||
else:
|
||||
for k, v in data.copy().items():
|
||||
if inspect.iscoroutinefunction(data[k]) or inspect.iscoroutine(data[k]):
|
||||
await v()
|
||||
data[k] = await v()
|
||||
elif callable(v):
|
||||
data[k] = v()
|
||||
data.setdefault("delete_after", 30)
|
||||
|
|
Loading…
Reference in a new issue