#59 Starting work on the mod manager

This commit is contained in:
Danielv123 committed 2017-11-01 21:48:55 +01:00
1 parent b847b1a934
commit c3b1e66646
5 files changed
+175 -16

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
module.exports.findUpdates = function(){
console.log("Downloading mods...");
// get JSON data about releases
let res = syncRequest('GET', 'https://api.github.com/repos/Danielv123/factorioClusterioMod/releases', {"headers":{"User-Agent":"Fuck you for requiring user agents!"}});
let url = JSON.parse(res.getBody())[0].assets[0].browser_download_url;
let name = JSON.parse(res.getBody())[0].assets[0].name;
console.log(JSON.parse(res.getBody()))
}