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

Function compactMessageText

biko/biko.ts:332–339  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

330 if (singleLine.length <= MAX_TEXT_LENGTH) return singleLine || "[空消息]";
331 return `${singleLine.slice(0, MAX_TEXT_LENGTH)}...`;
332}
333
334async function matchesManualSelector(
335 message: any,
336 selector: Extract<ResolvedSourceUser, { manualMode: true }>,
337): Promise<boolean> {
338 if (selector.manualUserId) {
339 return normalizeId(message?.senderId) === selector.manualUserId;
340 }
341
342 const expectedUsername = selector.manualUsername;

Callers 1

collectMessagesOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected