From ee38cd2a8249b6a9278436f3ca18bd19aa5ed4ee Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Mon, 12 Apr 2021 19:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=96=8A?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/chat.go b/chat/chat.go index 729262ec..59d5a871 100644 --- a/chat/chat.go +++ b/chat/chat.go @@ -13,7 +13,7 @@ var poke = rate.NewManager(time.Minute*5, 8) // 戳一戳 func init() { // 插件主体 // 被喊名字 - zero.OnFullMatchGroup(zero.BotConfig.NickName).SetBlock(false).FirstPriority(). + zero.OnFullMatch("", zero.OnlyToMe).SetBlock(false).FirstPriority(). Handle(func(ctx *zero.Ctx) { var nickname = zero.BotConfig.NickName[0] time.Sleep(time.Second * 1)