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, "干嘛!"))