From de8e591835d776c87c1d8b87eeb76d6507260a96 Mon Sep 17 00:00:00 2001 From: var-mixer Date: Thu, 10 Sep 2020 23:57:44 +0800 Subject: [PATCH] bug fix --- group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group.py b/group.py index 388e147..d4f2005 100644 --- a/group.py +++ b/group.py @@ -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 @@ -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: