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

@@ -13,8 +13,8 @@ import (
func init() {
control.Register("translation", &ctrl.Options[*zero.Ctx]{
DisableOnDefault: false,
Help: "翻译\n" +
">TL 你好",
Brief: "单词翻译",
Help: ">TL [好|good]",
}).OnRegex(`^>TL\s(-.{1,10}? )?(.*)$`).SetBlock(true).Limit(ctxext.LimitByUser).
Handle(func(ctx *zero.Ctx) {
msg := []string{ctx.State["regex_matched"].([]string)[2]}