From ad3ae960f1ab76441e9ca22de307f2e30f74f32a Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 7 Mar 2025 09:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=80=E4=BA=BA=E7=BD=91=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 7 +++++++ 1 file changed, 7 insertions(+) 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