Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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){
- console.log("botting id/ customid");
- var ul = args.toString().replace('https://steamcommunity.com/id/','');
- var uff = ul.toString().replace('/','');
- request("http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key="+config.steamApiKey+"&vanityurl="+uff+"", function (error, response, body) {
- let json = JSON.parse(body);
- var parsedid = json["response"]["steamid"];
- msg.reply("Reporting Player: " + parsedid);
- var cmd = "node ./main.js "+parsedid+" " +config.token
- exec(cmd, function(error, stdout, stderr) {
- msg.reply("Successfully finished the Request. Reportlog: "+"https://jaegerservice.xyz/API/"+parsedid+".txt");
- });
- });
- }else{
- console.log("profiles or id");
- var parsed1 = args.toString().replace('https://steamcommunity.com/profiles/','');
- // var parsedid = parsed1.toString().replace('/','');
- msg.reply("Reporting Player: " + parsed1);
- var cmd = "node ./main.js "+parsed1+" " +config.token
- exec(cmd, function(error, stdout, stderr) {
- msg.reply("Successfully finished the Request. Reportlog: "+"https://jaegerservice.xyz/API/"+parsed1+".txt");
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement