Cod CS:GO scris in Node.JS

Cautam ceva si ia uite peste ce am dat :
https://github.com/s-gto/BEA-hack

Imi place in special :

> main.checkForUpdate = function(callback){
>     request.get('https://raw.githubusercontent.com/s-gto/BEA-hack/master/version.json', function (error, response, body) {
>         if (!error && response.statusCode == 200) {
>             master = JSON.parse(body);
>             if(localVersion.version < master.version){
>                 console.log("Your version is outdated, please update it from https://github.com/s-gto/BEA-hack !");
>             }else{
>                 console.log("Your version is the newest.");
>             }
>             if(localVersion.offsets < master.offsets){
>                  request.get('https://raw.githubusercontent.com/s-gto/BEA-hack/master/offsets.json', function (error, response, body) {
>                     if (!error && response.statusCode == 200) {
>                         console.log("Offsets are updated");
>                         masterOffsets = JSON.parse(body);
>                         offsets = masterOffsets;
>                         localVersion.offsets = master.offsets;
>                         jsonfile.writeFile("./offsets.json", masterOffsets);
>                         jsonfile.writeFile("./version.json", localVersion);
>                         callback();
>                     }
>                 })
>             }else{
>                 callback();
>             }
>         }
>     });
> };
4 Likes

Si cum il rulezi ?