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

Function getArgs

cy/cy.ts:84–89  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

82};
83
84function getArgs(text: string): string {
85 const matched = prefixes.find((prefix) => text.trim().startsWith(prefix)) || mainPrefix;
86 const body = text.trim().slice(matched.length).trim();
87 const firstSpace = body.search(/\s/);
88 return firstSpace < 0 ? "" : body.slice(firstSpace + 1).trim();
89}
90
91function parseLimitFromParts(parts: string[]): number {
92 const value = Number(parts[0]);

Callers 1

CyPluginClass · 0.70

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected