Skip to content

Commit

Permalink
✏️ 群管 gist 验证 自动设置昵称为用户名
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Dec 23, 2021
1 parent 3b97753 commit f56cee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin_manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ func init() { // 插件主体
ok, reason := checkNewUser(ctx.Event.UserID, ctx.Event.GroupID, ghun, hash)
if ok {
ctx.SetGroupAddRequest(ctx.Event.Flag, "add", true, "")
process.SleepAbout1sTo2s()
ctx.SetGroupCard(ctx.Event.GroupID, ctx.Event.UserID, ghun)
} else {
ctx.SetGroupAddRequest(ctx.Event.Flag, "add", false, reason)
}
Expand Down

0 comments on commit f56cee9

Please sign in to comment.