mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-24 02:10:06 +08:00
✏️ 修复碧油鸡
This commit is contained in:
parent
bc7b84115a
commit
3ae333e047
@ -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~")
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user