Skip to content

Commit 4c0c06a

Browse files
committed
optimize: 赞我 触发失败时静默
1 parent c287ae7 commit 4c0c06a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/manager/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ func init() { // 插件主体
396396
}
397397
}
398398
if !flag {
399-
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("不加好友不给赞!"))
399+
// ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("不加好友不给赞!"))
400400
return
401401
}
402402
ctx.SendLike(ctx.Event.UserID, 10)
403403
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("给你赞了10下哦,记得回我~"))
404404
})
405405
// 给消息回应表情
406-
engine.OnRegex(`^\[CQ:reply,id=(-?\d+)\].*回应表情\s*(.*)\s*`, zero.AdminPermission, zero.OnlyGroup).SetBlock(true).
406+
engine.OnRegex(`^\[CQ:reply,id=(-?\d+)\].*回应表情\s*(.+)\s*$`, zero.AdminPermission, zero.OnlyGroup).SetBlock(true).
407407
Handle(func(ctx *zero.Ctx) {
408408
msgid := ctx.State["regex_matched"].([]string)[1]
409409
face := ctx.State["regex_matched"].([]string)[2]

0 commit comments

Comments
 (0)