MCPcopy Create free account
hub / github.com/Moli-X/Other / execFarm

Function execFarm

Backups/MoYo/Scripts/pushCode.js:100–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 })
99}
100function execFarm() {
101 return new Promise((resolve) => {
102 const url = {
103 url: 'http://api.turinglabs.net/api/v1/jd/farm/create/'+$.farm,
104 headers: {'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'},
105 }
106 $.get(url,(err, resp, data)=> {
107 try {
108 $.farmBody = data
109 //farmStatus = resp.statusCode
110 } catch (e) {
111 $.logErr(e, resp)
112 } finally {
113 resolve()
114 }
115 })
116 })
117}
118function execPet() {
119 return new Promise((resolve) => {
120 const url = {

Callers 1

pushCode.jsFile · 0.85

Calls 2

getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…