✏️ 修复碧油鸡

This commit is contained in:
Kanri 2021-09-06 14:58:04 +08:00
parent bc7b84115a
commit 3ae333e047

View File

@ -1,6 +1,5 @@
package qingyunke package qingyunke
import ( import (
zero "github.com/wdvxdr1123/ZeroBot" zero "github.com/wdvxdr1123/ZeroBot"
) )
@ -9,11 +8,9 @@ import (
func init() { func init() {
zero.OnRequest().SetBlock(false).FirstPriority().Handle(func(ctx *zero.Ctx) { zero.OnRequest().SetBlock(false).FirstPriority().Handle(func(ctx *zero.Ctx) {
if ctx.Event.RequestType == "friend" { if ctx.Event.RequestType == "friend" {
log.Println("加好友")
ctx.SetFriendAddRequest(ctx.Event.Flag, true, "") ctx.SetFriendAddRequest(ctx.Event.Flag, true, "")
} }
if ctx.Event.RequestType == "group" && ctx.Event.SubType == "invite" { if ctx.Event.RequestType == "group" && ctx.Event.SubType == "invite" {
log.Println("加群")
ctx.SetGroupAddRequest(ctx.Event.Flag, "invite", true, "我爱你mua~") ctx.SetGroupAddRequest(ctx.Event.Flag, "invite", true, "我爱你mua~")
} }
}) })