💡 update command docstrinrg

This commit is contained in:
yanyongyu
2020-10-28 13:17:41 +08:00
parent c636186321
commit dc5c35a9ed
4 changed files with 30 additions and 26 deletions

View File

@ -146,6 +146,8 @@ Rule(async_function, run_sync(sync_function))
命令形式匹配,根据配置里提供的 `command_start`, `command_sep` 判断消息是否为命令。
可以通过 `state["_prefix"]["command"]` 获取匹配成功的命令(例:`("test",)`),通过 `state["_prefix"]["raw_command"]` 获取匹配成功的原始命令文本(例:`"/test"`)。
* **参数**