From e4baa51fb02278f1a62c8cc4c5c483017577fb10 Mon Sep 17 00:00:00 2001 From: var-mixer Date: Sun, 18 Oct 2020 12:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=9B=E7=BE=A4=E5=8F=91?= =?UTF-8?q?=E8=A8=80=E4=B8=8D=E6=88=90=E5=8A=9F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constant.py | 2 +- group.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constant.py b/constant.py index 60babbf..339db9e 100644 --- a/constant.py +++ b/constant.py @@ -4,7 +4,7 @@ import hoshino -__version__ = '0.2.1.1' +__version__ = '0.2.1.2' try: config = hoshino.config.authMS.auth_config diff --git a/group.py b/group.py index 48569f4..879ba88 100644 --- a/group.py +++ b/group.py @@ -77,7 +77,7 @@ async def approve_group_invite_auto(session): elif new_group_auth == 'authed' or new_group_auth == 'trial': await asyncio.sleep(5) # 别发太快了 # 避免重复try - await util.notify_group(group_id=gid, message=config.NEW_GROUP_MSG) + await util.notify_group(group_id=gid, txt=config.NEW_GROUP_MSG) util.log(f'成功加入群{gid}中,该群授权状态{new_group_auth}', 'group_add') hoshino.logger.info(f'成功加入群{gid}中,该群授权状态{new_group_auth}') @@ -217,4 +217,4 @@ async def check_number(group_id=0): # 检查单个群的情况, 只通知而不自动退出, 等到下次计划任务时再退出 await util.notify_group(group_id=gid, txt='群人数超过管理员设定的最大值, 请联系管理员') return 'overflow' - return None \ No newline at end of file + return None