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

Function parseTaskIds

keyword/keyword.ts:566–579  ·  view source on GitHub ↗
(idsStr: string)

Source from the content-addressed store, hash-verified

564 const num = parseInt(id.trim());
565 if (isNaN(num)) {
566 throw new Error("请输入正确的参数");
567 }
568 result.push(num);
569 }
570
571 return result;
572}
573
574const keyword = async (msg: Api.Message) => {
575 try {
576 const messageText = msg.message || "";
577 const args = messageText.split(" ").slice(1) || [];
578 const spaceIndex = messageText.indexOf(" ");
579 const fullArgs =
580 spaceIndex !== -1 ? messageText.substring(spaceIndex + 1) : "";
581
582 if (args.length === 0 || args[0] === "h" || args[0] === "help") {

Callers 1

keywordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected