Update bot.py
This commit is contained in:
parent
ed91e037e1
commit
ab08787f2b
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -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)
|
||||
|
||||
|
||||
|
|
Reference in a new issue