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

Function renderTarget

bs/bs.ts:360–367  ·  view source on GitHub ↗
(target: TargetRecord)

Source from the content-addressed store, hash-verified

358}
359
360function renderTarget(target: TargetRecord): string {
361 const display =
362 target.display?.trim() || `<code>${escapeHtml(target.target)}</code>`;
363 const topic = target.topicId
364 ? ` | 话题: <code>${escapeHtml(target.topicId)}</code>`
365 : "";
366 return `[<code>${target.id}</code>] ${display}${topic}`;
367}
368
369function formatMode(mode: BsMode): string {
370 return mode === MODE_BROADCAST ? "群发模式" : "顺序模式";

Callers 2

buildListTextFunction · 0.85
BsPluginClass · 0.85

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected