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