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

Function getRemarkFromMsg

acron/acron.ts:25–29  ·  view source on GitHub ↗
(msg: Api.Message | string, n: number)

Source from the content-addressed store, hash-verified

23);
24
25function getRemarkFromMsg(msg: Api.Message | string, n: number): string {
26 return (typeof msg === "string" ? msg : msg?.message || "")
27 .replace(new RegExp(`^\\S+${Array(n).fill("\\s+\\S+").join("")}`), "")
28 .trim();
29}
30// DB schema and helpers
31type AcronType =
32 | "send"

Callers 1

AcronPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected