mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
19 lines
510 B
Go
19 lines
510 B
Go
// TODO: 移动到 manager 搭配自动验证使用
|
||
/*package qingyunke
|
||
|
||
import (
|
||
zero "github.com/wdvxdr1123/ZeroBot"
|
||
)
|
||
|
||
//自动同意加群,加好友
|
||
func init() {
|
||
zero.OnRequest().SetBlock(false).FirstPriority().Handle(func(ctx *zero.Ctx) {
|
||
if ctx.Event.RequestType == "friend" {
|
||
ctx.SetFriendAddRequest(ctx.Event.Flag, true, "")
|
||
}
|
||
if ctx.Event.RequestType == "group" && ctx.Event.SubType == "invite" {
|
||
ctx.SetGroupAddRequest(ctx.Event.Flag, "invite", true, "我爱你,mua~")
|
||
}
|
||
})
|
||
}
|
||
*/ |