🎨 改进代码样式 (#521)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2022-12-10 14:29:55 +08:00 committed by GitHub
parent 9550b817c5
commit 9a2081de0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 18 deletions

View File

@ -157,7 +157,6 @@ func init() {
if !find {
msgs += "无"
}
} else {
// 生成配置文本
msgs = fmt.Sprintf("本群配置:\n"+
@ -324,7 +323,6 @@ func init() {
}
group := getGroup(ctx.Event.GroupID)
ctx.SendChain(buildResp(bdres, group)...)
})
}

View File

@ -431,7 +431,6 @@ func (sql *婚姻登记) 清理花名册(gid ...string) error {
for _, listName := range grouplist {
if listName == "favorability" {
continue
}
err = sql.db.Drop(listName)
}

View File

@ -3,13 +3,14 @@ package quan
import (
"fmt"
"strconv"
"github.com/FloatTech/floatbox/web"
ctrl "github.com/FloatTech/zbpctrl"
"github.com/FloatTech/zbputils/control"
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
"github.com/wdvxdr1123/ZeroBot/utils/helper"
"strconv"
)
const (
@ -36,5 +37,4 @@ func init() { // 主函数
}
ctx.SendChain(message.Text(str, helper.BytesToString(es))) // 输出结果
})
}

View File

@ -4,13 +4,14 @@ package wenben
import (
"encoding/json"
"fmt"
"strings"
"github.com/FloatTech/floatbox/web"
ctrl "github.com/FloatTech/zbpctrl"
"github.com/FloatTech/zbputils/control"
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
"github.com/wdvxdr1123/ZeroBot/utils/helper"
"strings"
)
const (