This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
变更
-
增加装饰器
funcommand
, 用于将一个接受任意参数,返回str
或Message
或MessageSegment
的函数转换为命令响应器。from nonebot_plugin_alconna import funcommand @funcommand() async def echo(msg: str): return msg
签名:
def funcommand( name: str | None = None, prefixes: list[str] | None = None, description: str | None = None, ) -> Callable[[Callable[..., MReturn]], type[Matcher]]: ...
Full Changelog: v0.8.3...v0.9.0