Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rp(`https://www.edsm.net/api-logs-v1/get-position?commanderName=${msg.trim()}&showCoords=1`)
- .then(function (htmlString) {
- let json = JSON.parse(htmlString);
- console.log(json.coordinates);
- let data = [json.coordinates.x, json.coordinates.y, json.coordinates.z, json.system];
- return _callback(data);
- })
Advertisement
Add Comment
Please, Sign In to add comment