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

@@ -14,7 +14,8 @@ func init() {
// 初始化engine
engine := control.Register("chrev", &ctrl.Options[*zero.Ctx]{
DisableOnDefault: false,
Help: "字符翻转\n- 翻转 I love you",
Brief: "英文字符翻转",
Help: "例: 翻转 I love you",
})
// 处理字符翻转指令
engine.OnRegex(`^翻转\s*([A-Za-z\s]*)$`).SetBlock(true).