mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 12:36:47 +00:00
add startup shutdown deco
This commit is contained in:
@ -18,7 +18,6 @@ def event_preprocessor(func: PreProcessor) -> PreProcessor:
|
||||
|
||||
|
||||
async def handle_event(bot: Bot, event: Event):
|
||||
# TODO: PreProcess
|
||||
coros = []
|
||||
for preprocessor in _event_preprocessors:
|
||||
coros.append(preprocessor(bot, event))
|
||||
|
Reference in New Issue
Block a user