Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
var-mixer committed Sep 10, 2020
1 parent 1d2cdcd commit de8e591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions group.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def approve_group_invite_auto(session):
if int(session.event.user_id) != int(sid):
# 入群的人不是自己
return
rt = check_number(gid)
rt = await check_number(gid)
if rt == 'quitted':
util.log(f'被强制拉入群{gid}中,该群授权人数超标, 已自动退出','group_leave')
return
Expand Down Expand Up @@ -119,7 +119,7 @@ async def check_auth():
bot = nonebot.get_bot()

# 该函数会独立地检查一次所有群的人数是否超标
check_number()
await check_number()

group_info_all = await util.get_group_list_all()
for group in group_info_all:
Expand Down

0 comments on commit de8e591

Please sign in to comment.