Skip to content

Commit

Permalink
修复进群发言不成功的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
var-mixer committed Oct 18, 2020
1 parent 962e9c8 commit e4baa51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import hoshino


__version__ = '0.2.1.1'
__version__ = '0.2.1.2'

try:
config = hoshino.config.authMS.auth_config
Expand Down
4 changes: 2 additions & 2 deletions group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

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

0 comments on commit e4baa51

Please sign in to comment.