恢复注册方式 (#491)

This commit is contained in:
DreamZero
2022-11-09 13:29:07 +08:00
committed by GitHub
parent 5d94980e7c
commit 6c2fc1b4c2
9 changed files with 29 additions and 49 deletions

View File

@@ -17,15 +17,10 @@ import (
"github.com/FloatTech/zbputils/control"
)
const (
// 服务名
servicename = "atri"
// ATRI 表情的 codechina 镜像
res = "https://gitcode.net/u011570312/zbpdata/-/raw/main/Atri/"
)
const res = "https://gitcode.net/u011570312/zbpdata/-/raw/main/Atri/"
func init() { // 插件主体
engine := control.Register(servicename, &ctrl.Options[*zero.Ctx]{
engine := control.Register("atri", &ctrl.Options[*zero.Ctx]{
DisableOnDefault: false,
Brief: "atri人格文本回复",
Help: "本插件基于 ATRI ,为 Golang 移植版\n" +