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

Function signInitFun

jd_pet.js:342–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340}
341// 每日签到, 每天一次
342async function signInitFun() {
343 console.log('准备每日签到');
344 const response = await request("getSignReward");
345 console.log(`每日签到结果: ${JSON.stringify(response)}`);
346 if (response.code === '0' && response.resultCode === '0') {
347 console.log(`【每日签到成功】奖励${response.result.signReward}g狗粮\n`);
348 // message += `【每日签到成功】奖励${response.result.signReward}g狗粮\n`;
349 } else {
350 console.log(`【每日签到】${response.message}\n`);
351 // message += `【每日签到】${response.message}\n`;
352 }
353}
354
355// 三餐签到, 每天三段签到时间
356async function threeMealInitFun() {

Callers 1

doTaskFunction · 0.85

Calls 2

requestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected