Jump to content
McKay Development

4049_1572836826

Member
  • Content Count

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Interests
    JavaScript jQuery HTML PHP CSS SQL NODE JS PYTHON JSON

Recent Profile Visitors

125 profile views
  1. https://github.com/DoctorMcKay/node-steam-user#enabletwofactorcallback
  2. var request = require("request"); var steamid = '76561197960934690'; var apikey = 'u api key'; request({ url: 'http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key='+apikey+'&steamid='+steamid+'&format=json&include_appinfo=1', json: true }, function (error, response, body) { // console.log(body.response.games); if (!error && response.statusCode === 200) { for (i = 0; i <= body.response.games.length; i++) { console.log(body.response.games[i].name + ' - ' + body.response.games[i].playtime_forever / 60 + ' hrs.') } } }) https://steamcommunity.com/dev/apikey
  3. client.on('disconnected', () => { console.log("Bot Disconnected!"); }); community.on('sessionExpired', () => { console.log("Session expired!"); });
  4. And lvl add with steam web api or another api. <head> <link rel="stylesheet" type="text/css" href="https://steamcommunity-a.akamaihd.net/public/shared/css/shared_global.css"> </head> <body> <div class="friendPlayerLevel"><span class="friendPlayerLevelNum">274</span></div> <!--cahnge lvl--> <script> var lvl = document.getElementsByClassName('friendPlayerLevelNum')[0].innerHTML; if (lvl.length == 1) { document.getElementsByClassName('friendPlayerLevel')[0].classList.add("lvl_0"); } else if (lvl.length == 2) { document.getElementsByClassName('friendPlayerLevel')[0].classList.add("lvl_" + lvl[0] + "0"); } else if (lvl.length == 3) { document.getElementsByClassName('friendPlayerLevel')[0].classList.add("lvl_" + lvl[0] + "00"); document.getElementsByClassName('friendPlayerLevel')[0].classList.add("lvl_plus_" + lvl[1] + "0"); } </script> </body>
  5. class every 10 lvl with bg or img and u get e.g. . if class lvl_20 end 20 on javascript set if from 20 to 29 lvl and lvl if is 25, add class to div around lvl to lvl 20 img shape. I take shapes from this site. https://steamlvlup.com/img/steam_levels/100.png only change png number, site have lvls shape from lvl 100-4999 if (lvl >= 0 && lvl <= 9) { document.getElementById("lvl").style.border = "2px solid #9b9b9b" //lvl 1 to 99 dont want img bcs only circle } else if (lvl >= 10 && lvl <= 19) { here same style border ... } else if (lvl >= 20 && lvl <= 29) { orange } else if (lvl >= 30 && lvl <= 39) { yellow } else if (lvl >= 40 && lvl <= 49) { green } else if (lvl >= 50 && lvl <= 59) { blue } else if (lvl >= 60 && lvl <= 69) { purple } else if (lvl >= 70 && lvl <= 79) { pink } else if (lvl >= 80 && lvl <= 89) { idk } else if (lvl >= 90 && lvl <= 99) { idk } else if (lvl >= 100 && lvl <= 109) { document.getElementById("lvl").style.backgroundImage = "url('lvl_100.png')"; //this change background lvl div to lvl shape with color document.getElementById("lvl").style.backgroundPosition = "0px 40px"; //position of background if u use steamlvlup pngs document.getElementById("lvl").style.border = "none"; } ....
  6. client.getSteamLevels([steamID], function (results) { var lvl = results % 100; if (lvl >= 0 && lvl <= 9) { gray } else if (lvl >= 10 && lvl <= 19) { red } else if (lvl >= 20 && lvl <= 29) { orange } else if (lvl >= 30 && lvl <= 39) { yellow } else if (lvl >= 40 && lvl <= 49) { green } else if (lvl >= 50 && lvl <= 59) { blue } else if (lvl >= 60 && lvl <= 69) { purple } else if (lvl >= 70 && lvl <= 79) { pink } else if (lvl >= 80 && lvl <= 89) { idk } else if (lvl >= 90 && lvl <= 99) { idk } }
×
×
  • Create New...