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")