Skip to content

Commit

Permalink
✏️ 缩小青云客匹配范围
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Sep 10, 2021
1 parent e8503e9 commit 65a5b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin_qingyunke/qingyunke.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func init() { // 插件主体
Help: "青云客\n" +
"- @Bot 任意文本(任意一句话回复)",
})
// 回复
engine.OnRegex("(^.{1,30}$)", zero.OnlyToMe).SetBlock(true).SetPriority(prio).
// 回复 匹配中文、英文、数字但不包括下划线等符号
engine.OnRegex("(^[\u4E00-\u9FA5A-Za-z0-9]{1,30}$)", zero.OnlyToMe).SetBlock(true).SetPriority(prio).
Handle(func(ctx *zero.Ctx) {
if !bucket.Load(ctx.Event.UserID).Acquire() {
// 频繁触发,不回复
Expand Down

0 comments on commit 65a5b53

Please sign in to comment.