This commit is contained in:
源文雨 2022-12-10 14:35:32 +08:00
commit 575d158d5a
7 changed files with 16 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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