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

Function getPeerEntity

quote/quote.ts:391–409  ·  view source on GitHub ↗
(client: any, peer: any)

Source from the content-addressed store, hash-verified

389 out.color = out.backgroundColor;
390 i++;
391 }
392 continue;
393 }
394 if (isColorToken(arg)) {
395 out.backgroundColor = normalizeColorToken(arg);
396 out.color = out.backgroundColor;
397 continue;
398 }
399
400 // emoji brand
401 if (QUOTE_EMOJI_BRANDS.has(lower)) {
402 out.emojiBrand = lower;
403 continue;
404 }
405 const brandEq = lower.match(/^(?:emoji|brand)[=:]([a-z]+)$/);
406 if (brandEq && QUOTE_EMOJI_BRANDS.has(brandEq[1])) {
407 out.emojiBrand = brandEq[1];
408 continue;
409 }
410
411 const n = Number.parseInt(arg, 10);
412 if (!Number.isNaN(n) && /^[-+]?\d+$/.test(arg)) {

Callers 2

forwardedSourceFunction · 0.85
senderEntityFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected