✏️ fix context shell command typo

This commit is contained in:
yanyongyu 2022-01-11 12:53:19 +08:00
parent 742d1f1f02
commit 6ca54574ce
2 changed files with 4 additions and 4 deletions

View File

@ -214,7 +214,7 @@ async def _(foo: Message = CommandArg()): ...
### ShellCommandArgs ### ShellCommandArgs
```python {7} ```python {7}
from nonebot import on_command from nonebot import on_shell_command
from nonebot.params import ShellCommandArgs from nonebot.params import ShellCommandArgs
matcher = on_shell_command("cmd", parser) matcher = on_shell_command("cmd", parser)
@ -226,7 +226,7 @@ async def _(foo: Dict[str, Any] = ShellCommandArgs()): ...
### ShellCommandArgv ### ShellCommandArgv
```python {7} ```python {7}
from nonebot import on_command from nonebot import on_shell_command
from nonebot.params import ShellCommandArgs from nonebot.params import ShellCommandArgs
matcher = on_shell_command("cmd") matcher = on_shell_command("cmd")

View File

@ -214,7 +214,7 @@ async def _(foo: Message = CommandArg()): ...
### ShellCommandArgs ### ShellCommandArgs
```python {7} ```python {7}
from nonebot import on_command from nonebot import on_shell_command
from nonebot.params import ShellCommandArgs from nonebot.params import ShellCommandArgs
matcher = on_shell_command("cmd", parser) matcher = on_shell_command("cmd", parser)
@ -226,7 +226,7 @@ async def _(foo: Dict[str, Any] = ShellCommandArgs()): ...
### ShellCommandArgv ### ShellCommandArgv
```python {7} ```python {7}
from nonebot import on_command from nonebot import on_shell_command
from nonebot.params import ShellCommandArgs from nonebot.params import ShellCommandArgs
matcher = on_shell_command("cmd") matcher = on_shell_command("cmd")