⚗️ new dynamic handler args

This commit is contained in:
yanyongyu
2020-12-16 23:13:00 +08:00
parent ca8f764b8b
commit 784bc7b0cf
5 changed files with 84 additions and 58 deletions

View File

@ -7,7 +7,7 @@ from nonebot.message import event_preprocessor, run_preprocessor
@event_preprocessor
async def handle(bot: Bot, event: Event, state: State):
state["preprocessed"] = True
print(event)
print(type(event), event)
@run_preprocessor