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

Function showMsg

jd_dreamFactory.js:1295–1314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1293 }
1294}
1295async function showMsg() {
1296 return new Promise(async resolve => {
1297 message += `【收取自己零件】${$.pickUpMyselfComponent ? `获得${$.pickEle}电力` : `今日已达上限`}\n`;
1298 message += `【收取好友零件】${$.pickUpMyselfComponent ? `获得${$.pickFriendEle}电力` : `今日已达上限`}\n`;
1299 if ($.isNode() && process.env.DREAMFACTORY_NOTIFY_CONTROL) {
1300 $.ctrTemp = `${process.env.DREAMFACTORY_NOTIFY_CONTROL}` === 'false';
1301 } else if ($.getdata('jdDreamFactory')) {
1302 $.ctrTemp = $.getdata('jdDreamFactory') === 'false';
1303 } else {
1304 $.ctrTemp = `${jdNotify}` === 'false';
1305 }
1306 if (new Date().getHours() === 22) {
1307 $.msg($.name, '', `${message}`)
1308 $.log(`\n${message}`);
1309 } else {
1310 $.log(`\n${message}`);
1311 }
1312 resolve()
1313 })
1314}
1315function readShareCode() {
1316 console.log(`开始`)
1317 return new Promise(async resolve => {

Callers 1

jdDreamFactoryFunction · 0.70

Calls 4

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

Tested by

no test coverage detected