mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: 精确会话自动化规则
This commit is contained in:
1 parent
95384a4a92
commit
069d836dea
25 files changed
+1710
-122
No files matched your search
@@ -131,6 +131,10 @@ function buildChain(): Chain {
|
||||
|
||||
const store = new AutomationRuleStore({ userDataPath: () => root })
|
||||
const log = new AutomationExecutionLogService({ userDataPath: () => root })
|
||||
// 回复等待归零:端到端链路要跑得快且可复现。
|
||||
// 真实默认值是 2 秒(编辑自动化 → 3 · 触发后执行),等待语义本身由 runner 单测覆盖。
|
||||
const seeded = store.listRules()[0]
|
||||
if (seeded) store.updateRule(seeded.id, { ...seeded, replyDelaySeconds: 0 })
|
||||
const runner = new AutomationActionRunner({
|
||||
executeAction: (request) => gateway.execute(request),
|
||||
generateReport: async (request) => {
|
||||
|
||||
Reference in new issue
Block a user