Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steamcommunity'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL




  1. Good evening. I noticed that user data is cached. For example: community.getSteamUser(steamID), (err, user) => { console.log(user.groups); }); Will output the same data until I restarted the bot. Is there a way to disable this cache ?
  2. Why doesn't this work? const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity(); community.login({ "accountName": "accountName", "password": "password", }); community.loggedIn(() => { console.log("test"); }); Of course, I use proper login and password. And I get this when I run it:
  3. //Logging ON client.logOn(logOnOptions); client.on('loggedOn', function (details) { if (details.eresult == SteamUser.EResult.OK) { client.getPersonas([client.steamID], function (personas) { console.log("== Logged in =============") console.log('== Name: ' + personas[client.steamID]["player_name"]); console.log('== ID64: ' + client.steamID); console.log("=========================="); console.log(""); }); client.setPersona(5); //"5": "LookingToTrade" -- https://github.com/DoctorMcKay/node-steam-user/blob/master/enums/EPersonaState.js client.gamesPlayed('Accepting Junk and Making Friends'); } else { console.log(details); //Do whatever u want to handle the error... } }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); }); As soon as the bot starts everythings works fine. After some minutes, every time an offer is received by the bot, I get the "Not Logged In" error. I set up a cron (after reading a similar thread on this forum), like this: //Session refresh every 15 minutes cron.schedule('*/15 * * * *', () => { if (client.steamID) { client.webLogOn(); } else { client.logOn(logOnOptions); console.log('Logged in again using cron'); } }); but the "not logged in" error still remains. I also read this topic where Admin says this but at this point I don't understand which session needs to be refreshed and how. Also calling "sessionExpired" isn't helping because whenever an incoming trade offer gives me the error, bot doesn't try anymore to accept it, even after session is refreshed, so I have to restart it. manager.on('newOffer', offer => { if (offer.partner.getSteamID64() === 'my_stemid_64') { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`Accepted offer from owner. Status: ${status}.`); } }); } else { if (offer.itemsToGive.length === 0) { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`Donation accepted. Status: ${status}.`); } }); } else { offer.decline(err => { if (err) { console.log(err); } else { console.log('Donation declined (wanted our items).'); } }); } } }); Any help would be appreciated.
  4. Guest

    Can't Leave Comment

    Hello. When i Tried to leave comment i get error Error: The settings on this account do not allow you to add comments. My code let SteamUser = require("steam-user"), SteamCommunity = require("steamcommunity"), SteamID = require('steamid'), CONFIG = require('./config.js'), SteamTotp = require("steam-totp") let client = new SteamUser(); let community = new SteamCommunity(); let banshee = '765611979625767xxx'; let steamID = new SteamID(banshee); community.getSteamUser(steamID, function(ERR, USER) { if (ERR) { console.log("## An error occurred while getting user profile: " + ERR); } else { USER.comment('CONFIG.COMMENTAFTERTRADE', (ERR) => { if (ERR) { console.log("## An error occurred while commenting on user profile: " + ERR); } else { console.log('comment was posted') } }); } })
  5. Hi, when i using method community.editProfile - it remove my background if it exist
  6. How do i check if a group is joinable or invite only?
  7. Hello together with a friend are planning to start your own roulette to CS: GO. However, I encountered one problem, when I turn on the bot, he can not log in to your account and shows an error SteamAuthorizationError. Does anyone know what could be wrong ? Secret code and identity code i checked a million times. What could be more wrong. http://m.imgur.com/Bfmjd3F,m4LiYIA
  8. Hello i use this code community.postGroupAnnouncement("103582791463279214", title, msg, (err) => { if (err) { console.log("Error while posting announcement. Error " + err); } console.log("Posted announcement!"); console.log(" - Title: " + title); console.log(" - Message: " + msg); client.chatMessage(steamID, "hadi kapı orda yürü."); }); i not get any error or warn. But not sended announcement please help me
  9. I want to someone type my bot !selltf, his sell max 15 sets per game how can i do that? My Code; Inventory.prototype.getCustomerSets = function(ignore, sid64, callback, permit){ let self=this; this.community.getUserInventoryContents(sid64, 753, 6, true, (err, items) => { if(err){ callback(err); } else { items = items.filter(item => { if(item.getTag("item_class").internal_name == "item_class_2" && item.getTag("cardborder").internal_name == "cardborder_0"){ return item; } }); let customer_sets=[], customer_cards={}; items.forEach( card => { const appid=card.market_hash_name.split("-")[0]; if(!customer_cards[appid]){customer_cards[appid]={};} if(!customer_cards[appid][card.market_hash_name]){customer_cards[appid][card.market_hash_name]=[];} customer_cards[appid][card.market_hash_name].push(card); }); for(let appid in customer_cards){ if(self.card_db[appid]){ if(Object.keys(customer_cards[appid]).length == self.card_db[appid]){ let customerHave = Math.min.apply( Math, values(customer_cards[appid]).map( card => card.length ) ), botHave = self.AvailableSets[appid] ? self.AvailableSets[appid].length : 0, limit = permit ? (self.maxStock+permit) : self.maxStock, falt = limit-botHave; customerHave = !ignore ? ( (falt > 0) ? ( Math.min( ...[ falt, customerHave ] ) ) : 0 ) : customerHave; for (let i=0;i<customerHave;i++) { let currentCustomerSet=[] for(let card in customer_cards[appid]){ currentCustomerSet.push(customer_cards[appid][card][i]); } customer_sets.push(currentCustomerSet); } } } else { self.getAppIdCount(appid); } } callback(null, customer_sets); } }); }
  10. Hello Error: Must be logged in before trying to do anything with confirmations I get this error when executing code in BAS (Browser Automation Studio) [[IDENTITY_SECRET]] = JSON.parse([[FILE_CONTENT]]).identity_secret var SteamTotp = require('steam-totp'); [[code2]] = SteamTotp.generateConfirmationKey([[IDENTITY_SECRET]]); [[code3]] = SteamTotp.getConfirmationKey([[code2]]); [[TIME]] = SteamTotp.time([[timeOffset]]); var SteamCommunity = require('steamcommunity'); var community = new SteamCommunity(); var Steam = require('steam-client'); var client = new Steam.CMClient(Steam.EConnectionProtocol.TCP); var TradeOfferManager = require('steam-tradeoffer-manager'); var manager = new TradeOfferManager(); client.on('webSession', (sessionID, cookies) => { manager.setCookies(cookies, function (err) { if (err) { logger.error(err) //игнор.прав process.exit(1); } }); community.setCookies(cookies); community.startConfirmationChecker(10000, [[code3]]); }); var time = [[TIME]]; var confKey = [[code3]]; var allowKey = [[code3]]; community.acceptAllConfirmations(time, confKey, allowKey, function(err, confs){ if(err){ res.sendError(err); return; } if(confs == null) confs = []; res.sendSuccess(confs); });
  11. I do wonder if it's possible to interact with the workshop.
  12. Hello. I tried to log in to your account through the library Steam. I get a link to unreadable captcha. Captcha example: https://imgur.com/a/Wf0K5wU Link I've received: https://steamcommunity.com/login/rendercaptcha/?gid=2364870837474478762
  13. Hello guys i began to create a programm and i want to send messages any friend through api. I found https://api.steampowered.com/ISteamWebUserPresenceOAuth/Logon/v0001 and pass access_token - https://steamcommunity.com/dev/managegameservers and dev api key and i get an answer UnauthorizedAccess is denied. Retrying will not help. Please verify yourkey=parameter. What is that problem? How i can fix that? Help pls!
  14. some user inventories are really big, and the module would be doing lots of requests to steam, so if only a single one request fails, it would have to start all over again, to have a few extra attempts to that specific request if we receive a mailformed response or a common http error would be realy cool
  15. client.on('friendRelationship', (sid, relationship) => {if(relationship == SteamUser.EFriendRelationship.RequestRecipient) {console.log(`Friend request from: ${sid.getSteamID64()}`)console.log(`Checking if ${sid.getSteamID64()} is scammer.`)rep.isScammer(sid.getSteamID64(), function(error, result) {if(error) {console.log(error);} else {if(result) {console.log(`Declining friend request, ${sid.getSteamID64()} is a scammer.`);client.removeFriend(sid)} else {console.log(`Accepting friend request, ${sid.getSteamID64()} is not a scammer.`);community.getSteamUser(sid, (err, user) => {if(err) {console.error(err)} else {user.comment('test')}})}}});}});
  16. Hey, i will get my Inventory History and specific my CSGO Knife History. i see this is now a part of node-steamcommunity, but i dont know how i get this. My coding in node (javascript) is not so good for this Moment. I learn it now. Have anyone a code snippet for me? Or a good manuell for this how i can solve this? Special Thanks in advance I try it with let Inv = []; community.getHistory(client.steamID,function(err, user){ if (err) { console.log(err); } else { console.log(user.Inv); } }); But its not working and it is rly bad code i think ?
  17. Sorry to bother anyone on Christmas but I'm trying to send comments to user profiles. community.postUserComment("steam id", "hello", function (err) { console.log(err); }); But it keeps returning the error: Error: The settings on this account do not allow you to add comments. I've tried this on multiple accounts all of which have comments enabled, even tried on my own (bots) profile, still no luck. Any help would be greatly appreciated!
  18. Hi, I wonder if it is possible to get market item name and image url by market listing id from confirmation, I wonder how does mobile steam app creating its list of confirmations where you can see thumbnails and names of items on confirmations list.
  19. The line that the error pops up : manager.getUserInventoryContents('76561198083528564', 440, 2, true, function (error, inventory) { console.log(inventory.length); for(let l = 0 ; l < inventory.length; l++) { if(inventory[l].market_hash_name == prices[i].name) itemid = inventory[l].assetid; } }) Error:
  20. Hey I'm making my first bot so I'm trying to experiment with a bunch of simple features. But I cannot seem to get posting to steam profile comments working. I can post a comment on the same account using the browser, but if I do it with the bot I get the error 'The settings on that account do not allow you to add comments.' I think I have the same issue as this person: https://github.com/DoctorMcKay/node-steamcommunity/issues/217 So I'm wondering if I have tripped it, and what I can do to not trip it? I'm using my own personal account to test with and I'm trying to post comments in response to a message so my account will have been logged in for a while, it's not like I'm spamming either it's just 1 comment so I am out of ideas.
  21. It was implemented to Steam relatively recently. Is this something to expect in a future release, or did I completely overlook something? Thanks.
  22. Hello, why sometimes my response ( { response: {} } ) is empty? Profile status and game are public.
  • Create New...