MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / escape

Method escape

checkin/checkin.ts:609–616  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

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

Callers 4

CheckInPluginClass · 0.95
handleTargetCommandMethod · 0.95
handleConfigCommandMethod · 0.95
runAllSignsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected