wechat_msg_clicker/config.example.yaml

57 lines
1.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WeChat 消息自动点击器 配置文件
# 复制为 config.yaml 后根据需要修改
wechat:
bundle_id: "com.tencent.xinWeChat"
process_name: "WeChat"
# 扫描行为
scan:
interval_seconds: 15 # 每次扫描间隔(秒),无未读消息时生效
max_chats_per_scan: 0 # 每次扫描最多处理几个聊天0=不限制,处理全部)
scroll_chat_list: false # 是否滚动聊天列表查找更多聊天
# 延迟范围(秒),模拟真人操作节奏
delays:
before_click_chat: [0.5, 2] # 点击聊天前
after_open_chat: [0.5, 1.5] # 打开会话后等待
before_click_media: [0.3, 1.5] # 点击图片/文件前
after_click_media: [1.5, 4] # 点击图片/文件后(等待下载)
before_close_preview: [0.3, 1] # 关闭预览前
before_close_chat: [0.3, 1] # 关闭会话窗口前
between_messages: [0.2, 0.8] # 处理每条消息之间
# 工作时间24小时制
schedule:
enabled: true
start_hour: 8
end_hour: 23
pause_on_weekends: false
# 聊天过滤
filter:
mode: "all" # "all": 全部, "whitelist": 仅白名单, "blacklist": 排除黑名单
whitelist: [] # 白名单模式下,仅处理这些聊天
blacklist: # 黑名单模式下,排除这些聊天
- "腾讯新闻"
- "微信支付"
- "微信团队"
- "服务号"
- "订阅号"
- "文件传输助手"
# 媒体处理
media:
click_images: true # 是否点击图片
click_files: false # 是否点击文件(默认关闭,只点击图片)
click_videos: false # 是否点击视频(视频可能很大,默认关闭)
max_media_per_chat: 20 # 每个聊天最多点击几个媒体
# 日志配置
logging:
level: "INFO" # DEBUG, INFO, WARNING, ERROR
file: "wechat_clicker.log"
max_bytes: 10485760 # 10MB
backup_count: 5
console: true