mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-17 18:08:05 +00:00
Merge pull request #2 from AsakuraMizu/fix_command_type
This commit is contained in:
commit
3b983c8ec0
@ -143,7 +143,7 @@ def on_endswith(msg: str,
|
|||||||
startswith(msg), permission, **kwargs)
|
startswith(msg), permission, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def on_command(cmd: Union[str, Tuple[str]],
|
def on_command(cmd: Union[str, Tuple[str, ...]],
|
||||||
rule: Optional[Union[Rule, RuleChecker]] = None,
|
rule: Optional[Union[Rule, RuleChecker]] = None,
|
||||||
permission: Permission = Permission(),
|
permission: Permission = Permission(),
|
||||||
**kwargs) -> Type[Matcher]:
|
**kwargs) -> Type[Matcher]:
|
||||||
|
@ -110,7 +110,7 @@ def keyword(msg: str) -> Rule:
|
|||||||
return Rule(_keyword)
|
return Rule(_keyword)
|
||||||
|
|
||||||
|
|
||||||
def command(command: Tuple[str]) -> Rule:
|
def command(command: Tuple[str, ...]) -> Rule:
|
||||||
config = get_driver().config
|
config = get_driver().config
|
||||||
command_start = config.command_start
|
command_start = config.command_start
|
||||||
command_sep = config.command_sep
|
command_sep = config.command_sep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user