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

Function wrapWithSpoiler

sum/sum.ts:653–665  ·  view source on GitHub ↗
(content: string, useSpoiler: boolean)

Source from the content-addressed store, hash-verified

651function wrapWithSpoiler(content: string, useSpoiler: boolean): string {
652 if (!useSpoiler) {
653 return content;
654 }
655
656 // 检查内容是否已经包含折叠标签
657 if (content.includes('<blockquote expandable>')) {
658 return content;
659 }
660
661 // 用折叠标签包裹整个内容
662 return `<blockquote expandable>${content}</blockquote>`;
663}
664
665// AI 总结消息
666async function summarizeMessages(
667 task: SummaryTask,
668 messageData: MessageData[]

Callers 2

executeSummaryFunction · 0.85
SummaryPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected