秀人网图片随机优化
This commit is contained in:
7
robot.py
7
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
|
||||
|
||||
Reference in New Issue
Block a user