From 6ca54574ce836086673d29a303d46dfac4de48c4 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Tue, 11 Jan 2022 12:53:19 +0800 Subject: [PATCH] :pencil2: fix context shell command typo --- website/docs/tutorial/plugin/create-handler.md | 4 ++-- .../version-2.0.0-beta.1/tutorial/plugin/create-handler.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/tutorial/plugin/create-handler.md b/website/docs/tutorial/plugin/create-handler.md index eaf7c707..a0d344a9 100644 --- a/website/docs/tutorial/plugin/create-handler.md +++ b/website/docs/tutorial/plugin/create-handler.md @@ -214,7 +214,7 @@ async def _(foo: Message = CommandArg()): ... ### ShellCommandArgs ```python {7} -from nonebot import on_command +from nonebot import on_shell_command from nonebot.params import ShellCommandArgs matcher = on_shell_command("cmd", parser) @@ -226,7 +226,7 @@ async def _(foo: Dict[str, Any] = ShellCommandArgs()): ... ### ShellCommandArgv ```python {7} -from nonebot import on_command +from nonebot import on_shell_command from nonebot.params import ShellCommandArgs matcher = on_shell_command("cmd") diff --git a/website/versioned_docs/version-2.0.0-beta.1/tutorial/plugin/create-handler.md b/website/versioned_docs/version-2.0.0-beta.1/tutorial/plugin/create-handler.md index eaf7c707..a0d344a9 100644 --- a/website/versioned_docs/version-2.0.0-beta.1/tutorial/plugin/create-handler.md +++ b/website/versioned_docs/version-2.0.0-beta.1/tutorial/plugin/create-handler.md @@ -214,7 +214,7 @@ async def _(foo: Message = CommandArg()): ... ### ShellCommandArgs ```python {7} -from nonebot import on_command +from nonebot import on_shell_command from nonebot.params import ShellCommandArgs matcher = on_shell_command("cmd", parser) @@ -226,7 +226,7 @@ async def _(foo: Dict[str, Any] = ShellCommandArgs()): ... ### ShellCommandArgv ```python {7} -from nonebot import on_command +from nonebot import on_shell_command from nonebot.params import ShellCommandArgs matcher = on_shell_command("cmd")