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

Function showMsg

jd_fruit.js:1230–1247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1228 $.waterFriendForFarmRes = await request('waterFriendForFarm', body);
1229}
1230async function showMsg() {
1231 if ($.isNode() && process.env.FRUIT_NOTIFY_CONTROL) {
1232 $.ctrTemp = `${process.env.FRUIT_NOTIFY_CONTROL}` === 'false';
1233 } else if ($.getdata('jdFruitNotify')) {
1234 $.ctrTemp = $.getdata('jdFruitNotify') === 'false';
1235 } else {
1236 $.ctrTemp = `${jdNotify}` === 'false';
1237 }
1238 if ($.ctrTemp) {
1239 $.msg($.name, subTitle, message, option);
1240 if ($.isNode()) {
1241 allMessage += `${subTitle}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}`;
1242 // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`);
1243 }
1244 } else {
1245 $.log(`\n${message}\n`);
1246 }
1247}
1248
1249function timeFormat(time) {
1250 let date;

Callers 1

jdFruitFunction · 0.70

Calls 4

isNodeMethod · 0.45
getdataMethod · 0.45
msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected