⚗️ add new builtin plugin

This commit is contained in:
yanyongyu
2021-01-25 18:15:25 +08:00
parent 853b797cd9
commit f8304406c5
4 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,20 @@
from typing import Dict, Optional
from nonebot.typing import T_State
from nonebot.matcher import Matcher
from nonebot.adapters import Bot, Event
from nonebot.message import run_preprocessor, run_postprocessor, IgnoredException
_running_matcher: Dict[str, bool] = {}
@run_preprocessor
async def _(matcher: Matcher, bot: Bot, event: Event, state: T_State):
# TODO
pass
@run_postprocessor
async def _(matcher: Matcher, exception: Optional[Exception], bot: Bot, event: Event, state: T_State):
# TODO
pass