diff --git a/website/docs/advanced/runtime-hook.md b/website/docs/advanced/runtime-hook.md index 015cb733..1bb42c3b 100644 --- a/website/docs/advanced/runtime-hook.md +++ b/website/docs/advanced/runtime-hook.md @@ -82,6 +82,7 @@ async def do_something(event: Event): ```python from nonebot.message import event_postprocessor + @event_postprocessor async def do_something(event: Event): pass @@ -93,6 +94,7 @@ async def do_something(event: Event): ```python from nonebot.message import run_preprocessor + @run_preprocessor async def do_something(event: Event, matcher: Matcher): pass diff --git a/website/versioned_docs/version-2.0.0/advanced/runtime-hook.md b/website/versioned_docs/version-2.0.0/advanced/runtime-hook.md index 015cb733..1bb42c3b 100644 --- a/website/versioned_docs/version-2.0.0/advanced/runtime-hook.md +++ b/website/versioned_docs/version-2.0.0/advanced/runtime-hook.md @@ -82,6 +82,7 @@ async def do_something(event: Event): ```python from nonebot.message import event_postprocessor + @event_postprocessor async def do_something(event: Event): pass @@ -93,6 +94,7 @@ async def do_something(event: Event): ```python from nonebot.message import run_preprocessor + @run_preprocessor async def do_something(event: Event, matcher: Matcher): pass diff --git a/website/versioned_docs/version-2.0.0rc4/advanced/runtime-hook.md b/website/versioned_docs/version-2.0.0rc4/advanced/runtime-hook.md index 015cb733..1bb42c3b 100644 --- a/website/versioned_docs/version-2.0.0rc4/advanced/runtime-hook.md +++ b/website/versioned_docs/version-2.0.0rc4/advanced/runtime-hook.md @@ -82,6 +82,7 @@ async def do_something(event: Event): ```python from nonebot.message import event_postprocessor + @event_postprocessor async def do_something(event: Event): pass @@ -93,6 +94,7 @@ async def do_something(event: Event): ```python from nonebot.message import run_preprocessor + @run_preprocessor async def do_something(event: Event, matcher: Matcher): pass