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

Method saveLocalMetadata

save/save.ts:173–178  ·  view source on GitHub ↗
(filePath: string, metadata: Record<string, unknown>)

Source from the content-addressed store, hash-verified

171
172 if (directories.length === 1) {
173 return `目录: <code>${htmlEscape(directories[0])}</code>`;
174 }
175
176 const body = directories.map((dir) => `<code>${htmlEscape(dir)}</code>`).join('\n');
177 return `目录摘要:\n<blockquote expandable>${body}</blockquote>`;
178 }
179
180 private formatSourceLine(chatLabel: string, chatId: string, messageId: number): string {
181 const sourceLink = this.generateMessageLink(chatId, messageId);

Callers 1

saveMediaToLocalMethod · 0.95

Calls 1

buildUniquePathMethod · 0.95

Tested by

no test coverage detected