Skip to content

Commit e4baa51

Browse files
committed
修复进群发言不成功的问题
1 parent 962e9c8 commit e4baa51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

constant.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import hoshino
55

66

7-
__version__ = '0.2.1.1'
7+
__version__ = '0.2.1.2'
88

99
try:
1010
config = hoshino.config.authMS.auth_config

group.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def approve_group_invite_auto(session):
7777
elif new_group_auth == 'authed' or new_group_auth == 'trial':
7878
await asyncio.sleep(5) # 别发太快了
7979
# 避免重复try
80-
await util.notify_group(group_id=gid, message=config.NEW_GROUP_MSG)
80+
await util.notify_group(group_id=gid, txt=config.NEW_GROUP_MSG)
8181
util.log(f'成功加入群{gid}中,该群授权状态{new_group_auth}', 'group_add')
8282
hoshino.logger.info(f'成功加入群{gid}中,该群授权状态{new_group_auth}')
8383

@@ -217,4 +217,4 @@ async def check_number(group_id=0):
217217
# 检查单个群的情况, 只通知而不自动退出, 等到下次计划任务时再退出
218218
await util.notify_group(group_id=gid, txt='群人数超过管理员设定的最大值, 请联系管理员')
219219
return 'overflow'
220-
return None
220+
return None

0 commit comments

Comments
 (0)