add: 添加Brief (#482)

* add brief

* fix: README中插件位置
This commit is contained in:
DreamZero
2022-11-04 12:12:47 +08:00
committed by GitHub
parent 68a9ecf995
commit 88824126f7
85 changed files with 240 additions and 191 deletions

View File

@@ -17,7 +17,8 @@ import (
func init() {
control.Register("nbnhhsh", &ctrl.Options[*zero.Ctx]{
DisableOnDefault: false,
Help: "拼音首字母释义工具\n- ?? [缩写]",
Brief: "拼音首字母释义工具",
Help: "- ?? [缩写]",
}).OnRegex(`^[?]{1,2} ?([a-z0-9]+)$`).SetBlock(false).
Handle(func(ctx *zero.Ctx) {
keyword := ctx.State["regex_matched"].([]string)[1]