diff --git a/robot.py b/robot.py index 917df22..7f9147c 100644 --- a/robot.py +++ b/robot.py @@ -220,7 +220,14 @@ class Robot(Job): else: try: file_path = get_xiuren_pic() + self.LOG.info(f"发送文件:{file_path}") self.wcf.send_file(file_path, msg.roomid) + # 正则表达式匹配路径中的数字目录 + # match = re.search(r'\\(\d+)\\', file_path) + # if match: + # self.wcf.send_text( + # f"目录:[{match.group(1)}]\n输入 删除 {match.group(1)} 进行丑图排除", msg.roomid) + except Exception as e: self.LOG.error(f"图来发图出错:{e}") return True