(client: any, peer: string, msg: Api.Message, target: SignTarget)
| 492 | |
| 493 | // ── 签到 ── |
| 494 | |
| 495 | private async runAllSigns(source: string, fallbackPeer?: string): Promise<void> { |
| 496 | if (this.running) return; |
| 497 | this.running = true; |
| 498 | try { |
| 499 | const results: Array<{ target: SignTarget; result: SignResult }> = []; |
| 500 | for (const t of this.cfg.get().targets.filter((x) => x.enabled)) { |
| 501 | if (results.length) await sleep(2000); |
| 502 | results.push({ target: t, result: await this.runSingleSign(t) }); |
| 503 | } |
| 504 | await this.report(source, results, fallbackPeer); |
| 505 | } finally { |
| 506 | this.running = false; |
| 507 | } |
no test coverage detected