MCPcopy Create free account
hub / github.com/Semporia/Scripts / ChangeUserId

Function ChangeUserId

sendNotify.js:459–476  ·  view source on GitHub ↗
(desp)

Source from the content-addressed store, hash-verified

457}
458
459function ChangeUserId(desp) {
460 const QYWX_AM_AY = QYWX_AM.split(',');
461 if (QYWX_AM_AY[2]) {
462 const userIdTmp = QYWX_AM_AY[2].split("|");
463 let userId = "";
464 for (let i = 0; i < userIdTmp.length; i++) {
465 const count = "账号" + (i + 1);
466 const count2 = "签到号 " + (i + 1);
467 if (desp.match(count2)) {
468 userId = userIdTmp[i];
469 }
470 }
471 if (!userId) userId = QYWX_AM_AY[2];
472 return userId;
473 } else {
474 return "@all";
475 }
476}
477
478function qywxamNotify(text, desp) {
479 return new Promise(resolve => {

Callers 1

qywxamNotifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected