✏️ 群管 gist 验证 自动设置昵称为用户名

This commit is contained in:
fumiama 2021-12-23 21:46:34 +08:00
parent 3b977535f1
commit f56cee9ec1

View File

@ -515,6 +515,8 @@ func init() { // 插件主体
ok, reason := checkNewUser(ctx.Event.UserID, ctx.Event.GroupID, ghun, hash) ok, reason := checkNewUser(ctx.Event.UserID, ctx.Event.GroupID, ghun, hash)
if ok { if ok {
ctx.SetGroupAddRequest(ctx.Event.Flag, "add", true, "") ctx.SetGroupAddRequest(ctx.Event.Flag, "add", true, "")
process.SleepAbout1sTo2s()
ctx.SetGroupCard(ctx.Event.GroupID, ctx.Event.UserID, ghun)
} else { } else {
ctx.SetGroupAddRequest(ctx.Event.Flag, "add", false, reason) ctx.SetGroupAddRequest(ctx.Event.Flag, "add", false, reason)
} }