(s: string)
| 607 | if (!client) return { success: false, error: "客户端未初始化" }; |
| 608 | try { |
| 609 | const sent = await client.sendMessage(target.target, { message: target.command }); |
| 610 | const sentId = Number((sent as any)?.id || 0); |
| 611 | const start = Math.floor(Date.now() / 1000); |
| 612 | |
| 613 | const first = await this.waitForNewMessage(client, target.target, start, 10_000, (m) => { |
| 614 | if (m.out) return false; |
| 615 | if (this.hasMatcher(target)) return !!this.findCallbackButton(m, target); |
| 616 | return this.isAfterMessage(m, sentId); |
| 617 | }); |
| 618 | if (!first) return { success: false, error: "未收到签到结果" }; |
| 619 |
no outgoing calls
no test coverage detected