mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	✏️ fix context shell command typo
This commit is contained in:
		| @@ -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") | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user