🎨 改进代码样式

This commit is contained in:
github-actions[bot] 2022-02-23 08:58:01 +00:00
parent b2cff862bb
commit b8f3700fe4

View File

@ -49,7 +49,7 @@ const (
"- 列出所有提醒\n" +
"- 翻牌\n" +
"- 设置欢迎语XXX可加{at}在欢迎时@对方)\n" +
"- 测试欢迎语\n" +
"- 测试欢迎语\n" +
"- [开启 | 关闭]入群验证"
)
@ -449,9 +449,9 @@ func init() { // 插件主体
ctx.SendChain(message.Text("出错啦: ", err))
}
})
// 测试欢迎语
engine.OnFullMatch("测试欢迎语", zero.OnlyGroup, zero.AdminPermission).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
// 测试欢迎语
engine.OnFullMatch("测试欢迎语", zero.OnlyGroup, zero.AdminPermission).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
var w welcome
err := db.Find("welcome", &w, "where gid = "+strconv.FormatInt(ctx.Event.GroupID, 10))
if err == nil {