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

Function buildFooter

pmcaptcha/pmcaptcha.ts:736–742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

734 const lines: string[] = [];
735 if (timeout > 0) lines.push(`⏱ 验证时间:<b>${htmlEscape(timeout)}</b> 秒`);
736 if (maxTries > 0) lines.push(`🔢 剩余次数:<b>${htmlEscape(remaining > 0 ? remaining : maxTries)}</b> 次`);
737 lines.push(`⚠️ 验证失败将会:${htmlEscape(actionDesc)}`);
738 return lines.length ? "\n\n" + lines.join("\n") : "";
739 }
740
741 switch (state.mode) {
742 case CaptchaMode.MATH: {
743 const footer = buildFooter();
744 return custom
745 ? htmlEscape(custom).replace("{question}", htmlEscape(state.question))

Callers 2

rebuildCaptchaTextFunction · 0.85
sendCaptchaFunction · 0.85

Calls 1

htmlEscapeFunction · 0.70

Tested by

no test coverage detected