SHARE
TWEET

Untitled

a guest Jan 19th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         if (args.indexOf('https') !== -1 && args.indexOf('id') !== -1 && args.indexOf('765') == -1 && args.indexOf('profiles') == -1 || args.indexOf('profiles') == -1 &&  /^\d+$/.test(args) == false && args.indexOf('https') == -1){
  2.                 console.log("botting id/ customid");
  3.                 var ul = args.toString().replace('https://steamcommunity.com/id/','');
  4.                 var uff = ul.toString().replace('/','');
  5.             request("http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key="+config.steamApiKey+"&vanityurl="+uff+"", function (error, response, body) {            
  6.             let json = JSON.parse(body);      
  7.             var parsedid = json["response"]["steamid"];
  8.             msg.reply("Reporting Player: " + parsedid);
  9.             var cmd = "node ./main.js "+parsedid+" " +config.token
  10.              exec(cmd, function(error, stdout, stderr) {
  11.                 msg.reply("Successfully finished the Request. Reportlog: "+"https://jaegerservice.xyz/API/"+parsedid+".txt");
  12.             });
  13.             });
  14.             }else{
  15.                 console.log("profiles or id");
  16.                 var parsed1 = args.toString().replace('https://steamcommunity.com/profiles/','');
  17.             //  var parsedid = parsed1.toString().replace('/','');
  18.                 msg.reply("Reporting Player: " + parsed1);
  19.              var cmd = "node ./main.js "+parsed1+" " +config.token
  20.               exec(cmd, function(error, stdout, stderr) {
  21.                 msg.reply("Successfully finished the Request. Reportlog: "+"https://jaegerservice.xyz/API/"+parsed1+".txt");
  22.             });
  23.             };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top