秀人网图片随机优化

This commit is contained in:
liuwei
2025-03-07 09:12:07 +08:00
parent ea172743c5
commit ad3ae960f1

View File

@@ -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