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

Function showMsg

jd_joy_run.js:281–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279}
280
281function showMsg() {
282 return new Promise(async resolve => {
283 if ($.inviteReward || $.runReward) {
284 let message = '';
285 if ($.inviteReward > 0) {
286 message += `给${$.inviteReward / 30}人邀请助力成功,获得${$.inviteReward}积分\n`;
287 }
288 if ($.runReward > 0) {
289 message += `给${$.runReward / 5}人赛跑助力成功,获得狗粮${$.runReward}g`;
290 }
291 if (message) {
292 $.msg($.name, '', `京东账号${$.index} ${UserName}\n${message}`);
293 }
294 }
295 resolve();
296 })
297}
298//邀请助力
299async function invite(invite_pins) {
300 console.log(`账号${$.index} [${UserName}] 给下面名单的人进行邀请助力\n${invite_pins.map(item => item.trim())}\n`);

Callers 1

mainFunction · 0.70

Calls 1

msgMethod · 0.45

Tested by

no test coverage detected