Archived
1
0
Fork 0

Update bot.py

This commit is contained in:
yzhh 2021-07-08 23:51:45 +08:00
parent ed91e037e1
commit ab08787f2b

4
bot.py
View file

@ -55,8 +55,8 @@ async def NGroup(event: BotInvitedJoinGroupRequestEvent):
async def autorun_handler(app: GraiaMiraiApplication):
gather_list = []
for x in Modules:
if x.autorun:
gather_list.append(asyncio.ensure_future(x.function(app)))
if Modules[x].autorun:
gather_list.append(asyncio.ensure_future(Modules[x].function(app)))
await asyncio.gather(*gather_list)