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

Function showMsg

jd_jdfactory.js:103–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102}
103function showMsg() {
104 return new Promise(resolve => {
105 if (!jdNotify) {
106 $.msg($.name, '', `${message}`);
107 } else {
108 $.log(`${message}`);
109 }
110 if (new Date().getHours() === 12) {
111 $.msg($.name, '', `${message}`);
112 }
113 resolve()
114 })
115}
116async function algorithm() {
117 // 当心仪的商品存在,并且收集起来的电量满足当前商品所需,就投入
118 return new Promise(resolve => {

Callers 1

jdFactoryFunction · 0.70

Calls 2

msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected