Skip to content

Commit ca4a682

Browse files
authored
✏️ 优化戳一戳命令牌为群号
1 parent b9ddcfc commit ca4a682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin_chat/chat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ func init() { // 插件主体
4040
Handle(func(ctx *zero.Ctx) {
4141
var nickname = zero.BotConfig.NickName[0]
4242
switch {
43-
case poke.Load(ctx.Event.UserID).AcquireN(3):
43+
case poke.Load(ctx.Event.GroupID).AcquireN(3):
4444
// 5分钟共8块命令牌 一次消耗3块命令牌
4545
time.Sleep(time.Second * 1)
4646
ctx.SendChain(message.Text("请不要戳", nickname, " >_<"))
47-
case poke.Load(ctx.Event.UserID).Acquire():
47+
case poke.Load(ctx.Event.GroupID).Acquire():
4848
// 5分钟共8块命令牌 一次消耗1块命令牌
4949
time.Sleep(time.Second * 1)
5050
ctx.SendChain(message.Text("喂(#`O′) 戳", nickname, "干嘛!"))

0 commit comments

Comments
 (0)