✏️ 修复碧油鸡

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