Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Nonebot Plugin Alconna 0.9.0

Latest
Compare
Choose a tag to compare
@RF-Tar-Railt RF-Tar-Railt released this 03 Jul 13:07
· 3 commits to master since this release

变更

  • 增加装饰器 funcommand, 用于将一个接受任意参数,返回 strMessageMessageSegment 的函数转换为命令响应器。

     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