From ca4a6827942f376f139ab09eb1ee27d1df9cc20c Mon Sep 17 00:00:00 2001 From: Kanri Date: Tue, 7 Dec 2021 09:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=88=B3=E4=B8=80=E6=88=B3=E5=91=BD=E4=BB=A4=E7=89=8C=E4=B8=BA?= =?UTF-8?q?=E7=BE=A4=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_chat/chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_chat/chat.go b/plugin_chat/chat.go index 262d50d7..674d18cf 100644 --- a/plugin_chat/chat.go +++ b/plugin_chat/chat.go @@ -40,11 +40,11 @@ func init() { // 插件主体 Handle(func(ctx *zero.Ctx) { var nickname = zero.BotConfig.NickName[0] switch { - case poke.Load(ctx.Event.UserID).AcquireN(3): + case poke.Load(ctx.Event.GroupID).AcquireN(3): // 5分钟共8块命令牌 一次消耗3块命令牌 time.Sleep(time.Second * 1) ctx.SendChain(message.Text("请不要戳", nickname, " >_<")) - case poke.Load(ctx.Event.UserID).Acquire(): + case poke.Load(ctx.Event.GroupID).Acquire(): // 5分钟共8块命令牌 一次消耗1块命令牌 time.Sleep(time.Second * 1) ctx.SendChain(message.Text("喂(#`O′) 戳", nickname, "干嘛!"))