调试加群代码
This commit is contained in:
2
robot.py
2
robot.py
@@ -163,7 +163,7 @@ class Robot(Job):
|
|||||||
elif match:
|
elif match:
|
||||||
try:
|
try:
|
||||||
group_id = get_first_group_id(match.group(1))
|
group_id = get_first_group_id(match.group(1))
|
||||||
self.LOG.info(f"邀请加入{match.group(1)}群{msg.sender}")
|
self.LOG.info(f"邀请加入{match.group(1)}群,ID:{group_id}{msg.sender}")
|
||||||
self.wcf.invite_chatroom_members(group_id, msg.sender)
|
self.wcf.invite_chatroom_members(group_id, msg.sender)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"邀请加入群出错:{e}")
|
self.LOG.error(f"邀请加入群出错:{e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user