修改调试代码,打开加群消息显示
This commit is contained in:
4
robot.py
4
robot.py
@@ -164,7 +164,7 @@ class Robot(Job):
|
||||
try:
|
||||
group_id = get_first_group_id(match.group(1))
|
||||
self.LOG.info(f"邀请加入{match.group(1)}群,ID:{group_id}{msg.sender}")
|
||||
self.wcf.invite_chatroom_members(group_id, msg.sender)
|
||||
resp =self.wcf.invite_chatroom_members(group_id, msg.sender)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"邀请加入群出错:{e}")
|
||||
return True
|
||||
@@ -287,7 +287,7 @@ class Robot(Job):
|
||||
while wcf.is_receiving_msg():
|
||||
try:
|
||||
msg = wcf.get_msg()
|
||||
self.LOG.debug(msg)
|
||||
self.LOG.info(msg)
|
||||
self.processMsg(msg)
|
||||
except Empty:
|
||||
continue # Empty message
|
||||
|
||||
Reference in New Issue
Block a user