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 if (lower === "bg" || lower === "color" || lower === "background") {
390 const next = args[i + 1];
391 if (next && isColorToken(next)) {
392 out.backgroundColor = normalizeColorToken(next);
393 out.color = out.backgroundColor;
394 i++;
395 }
396 continue;
397 }
398 if (isColorToken(arg)) {
399 out.backgroundColor = normalizeColorToken(arg);
400 out.color = out.backgroundColor;
401 continue;
402 }
403
404 // emoji brand
405 if (QUOTE_EMOJI_BRANDS.has(lower)) {
406 out.emojiBrand = lower;
407 continue;
408 }
409 const brandEq = lower.match(/^(?:emoji|brand)[=:]([a-z]+)$/);
410 if (brandEq && QUOTE_EMOJI_BRANDS.has(brandEq[1])) {
411 out.emojiBrand = brandEq[1];
412 continue;

Callers 2

forwardedSourceFunction · 0.85
senderEntityFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected