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

Function getCommandArgsText

quote/quote.ts:259–268  ·  view source on GitHub ↗
(msg: Api.Message, command: string)

Source from the content-addressed store, hash-verified

257
258type QuoteUser = {
259 id: number;
260 name: string | false;
261 first_name: string | false;
262 photo: Record<string, never>;
263 emoji_status?: any;
264};
265
266function generateRandomColor(): string {
267 return `#${Math.floor(Math.random() * 0xffffff).toString(16).padStart(6, "0")}`;
268}
269
270function getCommandArgsText(msg: Api.Message, command: string): string {
271 const raw = ((msg as any).message || (msg as any).text || "") as string;

Callers 1

handleQuoteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected