MCPcopy Create free account
hub / github.com/6dylan6/jdpro / buildLastDesp

Function buildLastDesp

function/sendNotify.js:1524–1534  ·  view source on GitHub ↗
(desp, author = '')

Source from the content-addressed store, hash-verified

1522}
1523
1524function buildLastDesp(desp, author = '') {
1525 author = process.env.NOTIFY_AUTHOR || author;
1526 if (process.env.NOTIFY_AUTHOR_BLANK || !author) {
1527 return desp.trim();
1528 } else {
1529 if (!author.match(/本通知 By/)) {
1530 author = `\n\n${author}`
1531 }
1532 return desp.trim() + author + "\n现在时刻: " + GetDateTime(new Date());
1533 }
1534}
1535
1536function ChangeUserId(desp) {
1537 const QYWX_AM_AY = QYWX_AM.split(',');

Callers 2

sendNotifyFunction · 0.70
sendNotifybyWxPucherFunction · 0.70

Calls 2

GetDateTimeFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected