Feat: 添加 CommandStart 依赖注入参数 (#915)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
MeetWq
2022-04-20 14:43:29 +08:00
committed by GitHub
parent f989710cd6
commit 533e99418c
6 changed files with 74 additions and 11 deletions

View File

@ -8,6 +8,7 @@ from nonebot.params import (
CommandArg,
RawCommand,
RegexGroup,
CommandStart,
RegexMatched,
ShellCommandArgs,
ShellCommandArgv,
@ -30,6 +31,10 @@ async def command_arg(cmd_arg: Message = CommandArg()) -> Message:
return cmd_arg
async def command_start(start: str = CommandStart()) -> str:
return start
async def shell_command_args(
shell_command_args: dict = ShellCommandArgs(),
) -> dict: