🔥 🎨 优化代码结构

This commit is contained in:
fumiama
2022-02-09 15:43:14 +08:00
parent 806b77acce
commit 8c943d2c01
77 changed files with 333 additions and 404 deletions

View File

@@ -15,7 +15,7 @@ import (
"github.com/FloatTech/zbputils/ctxext"
"github.com/FloatTech/zbputils/process"
"github.com/FloatTech/ZeroBot-Plugin/order"
"github.com/FloatTech/zbputils/control/order"
)
func tl(d string) ([]byte, error) {
@@ -38,7 +38,7 @@ func tl(d string) ([]byte, error) {
}
func init() {
control.Register("translation", order.PrioTranslation, &control.Options{
control.Register("translation", order.AcquirePrio(), &control.Options{
DisableOnDefault: false,
Help: "翻译\n" +
">TL 你好",