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


Forums

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hi. I have stored session into a file, I am trying to restore it using setCookies function but loggedIn function returns false, With heder location https://steamcommunity.com/login/home/?goto=%2Fmy fs.readFile('/cookies.txt', 'utf8', function (err,data) { if (err) { return console.log(err); } console.log(JSON.parse(data)) // array of cookies from steamcommunity.login function steamCommunity.setCookies(JSON.parse(data)); steamCommunity.loggedIn(function (error, logged_in){ console.log(logged_in) // === false; console.log(error) // === null }); });
  2. Happened last night. Should report it as bug or it was some random error? I have no clue of what triggered that, since that account doesn't have any friends that sends chat messages, and I wasn't online. PS: Sorry for bad english
  3. How i can fill details with a variable? For example: var log = "example1"; var pasw = "example2"; var details = { "accountName": log, "password": pasw,}; When i try to run it shows me that "accountName": log, ^ ReferenceError: log is not defined
  4. How can I get WebCookie without connecting steamuser? How can I get WebCookie without connecting steamuser
  5. How can i get steamLoginSecure of cookie? function accountLogin (details) { community.login(details, (err, sessionID, cookies, steamguard, YourCookieValue) => { community.login({ "accountName": details.accountName, "password": details.password, }, (err, sessionID, cookies, steamguard, YourCookieValue) => { if (err) { console.log(err); } else { store.setCookies(cookies); community.getWebApiOauthToken(function (err, token) { OAuthToken = token; }); } }); });}
  6. I need get steamid after login in acc. How can i do this?
  7. getUserInventoryContents does not load actions, but getReceived items loads why?
  8. So using this method, it seems to return prices that aren't the latest. Can i know how to get the latest price ? offer.itemsToGive.forEach((item) => { if (isCard(item) === true) { community.getMarketItem(item.appid, item.market_hash_name, function(err, item) { if (err) { console.log(err) } else { console.log(item) } }) } })
  9. When i using marketSearch function body.total_count result this always not correct ? ( always > total_count on website of steam ? ). This is not err . Thank All. When logged and see market steam filter data because result is difference . I realizeI realize
  10. please help when i call postUserComment it says the settings on this account do not allow you to add comments, but i can manually add comments , here is all my code, please HELP!! const TradeOfferManager = require('steam-tradeoffer-manager');const SteamCommunity = require('steamcommunity');var steamParental = require('steam-parental');const SteamUser = require('steam-user');var prompt = require('prompt');var math = require('mathjs'); require('console-stamp')(console, '[HH:MM:ss]'); const client = new SteamUser();const community = new SteamCommunity();const manager = new TradeOfferManager ({steam: client,community: community,language: 'en'}); var schema = { properties: { Account_Name: { }, Password: { hidden: true, replace: '*' }, } }; prompt.start(); prompt.get(schema, function (err, result) { // console.log(' name: ' + result.AccountName); // console.log(' password: ' + result.Password); const logOnOptions = {accountName: result.Account_Name,password: result.Password,};// Disables asking for Steam Guard Codeclient.setOption("promptSteamGuardCode", true); client.logOn(logOnOptions); client.on('loggedOn', () => {client.on("accountInfo", function(name, country) { console.log(' ');console.log('-----------------------------------');console.log('Succesfully logged in as: ' + result.Account_Name);console.log("Your Online Name: " + name);console.log("Your Country: " + country);console.log('-----------------------------------');console.log('Now Blocking Group Invites');console.log('-----------------------------------');console.log(' ');client.setPersona(SteamUser.Steam.EPersonaState.Online);client.gamesPlayed(["BOT TESTING",271590]);// client.gamesPlayed(271590); //Playing GTA 5 client.on('webSession', (sessionid, cookies) => {manager.setCookies(cookies);community.setCookies(cookies); }); var Dets = { properties: { SteamID64: { }, comment: { }, times: { }, } }; prompt.start(); prompt.get(Dets, function (err, result) { // console.log("SteamID64: " + result.SteamID64); // console.log("what to comment: " + result.comment); // console.log("how many times: " + result.times); for(var i = 0; i < result.times;i++){ community.postUserComment(76561198398342583, 'test', (err) => { console.log(err); } );};});}); });}); client.on('groupRelationship', function (steamID, relationship) {if (relationship == SteamUser.Steam.EClanRelationship.Invited){//console.log("Succesfully Decline Group Invite From" + " " + steamID);client.respondToGroupInvite(steamID, false);console.log("Declined Steam Group Invite");}}); client.on("friendMessage", function(steamID, message, type) {client.getPersonas([steamID], function(personas) {var persona = personas[steamID];var name = persona ? persona.player_name : ("[" + steamID + "]");console.log("Friend message from " + name + ": " + message); });});// client.on('friendRelationship', function(steamID, relationship) { // if (relationship == SteamUser.Steam.EFriendRelationship.RequestRecipient) {// client.addFriend(steamID);// console.log(" ");// console.log("Accepted friend request from: " + steamID);// client.chatMessage(steamID, "Welcome To My Bot, type !help to get started!");// }// }); // client.on('friendRelationship', function(steamID, relationship) { // if (relationship == SteamUser.Steam.EFriendRelationship.None) {// console.log(" ");// console.log("you have been deleted by: " + steamID);// }// }); // client.on("newComments", function(count) {// console.log("You have " + count + " new comments on your profile");// }); // client.on("newItems", function(count) {// console.log("You have " + count + " new items in your inventory");// }); // client.on("tradeOffers", function(count) {// console.log("You have " + count + " new trade offers");// }); // client.on("offlineMessages", function(count) {// console.log("You have " + count + " unread messages");// }); client.on("friendMessage", function(steamID, message) {if (message == "!help") {client.chatMessage(steamID, "Type !starwars for a cool quote");}}); client.on("friendMessage", function(steamID, message) {if (message == "!help") {client.chatMessage(steamID, "Type !csgo for something funny");}}); client.on("friendMessage", function(steamID, message) {if (message == "!starwars") {client.chatMessage(steamID, "The Force will be with you. Always. — Obi-Wan Kenobi");}}); client.on("friendMessage", function(steamID, message) {if (message == "!csgo") {client.chatMessage(steamID, "You bought the game for russain lessons, right?");}});// This will fire when we receive a chat message from ANY friend// client.on('friendMessage', function(steamID, message) {// console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message);// });
  11. when ever i call postUserComment it returns "The settings on this account do not allow you to add comments" but the account can post comments to the profile manually. Any ideas why?
  12. After looking through the wiki for the SteamCommunity module I cannot find the method for inviting a user to a group. Can someone please tell me where to find info about it and how to use it. Thanks EDIT: I found where the function is mentioned but it doesn't look like its used how other people are using it as seen here.
  13. Hello, I was wandering around my group and noticed that my bots have stopped inviting users to my group after a successful trade (3 bots in total, which do around 100 trades a day with complete strangers). In fact, this is not only my group, I tried to make it invite users to my other group (which has only 55 members) and it still didn't invite them. Is it something to do with my code or has something changed recently? code bit: community.inviteUserToGroup(user, config.groupToInvite, function(err){ if(err){ console.log("Error with inviting user to group\n"+err); } else { console.log(`Invited ${user} to ${config.groupToInvite}`); }
  14. There is any limit in getUserInventoryContents() ?, i mean, steam rate limits or anything that may freeze my bot, or may cause errors?
  15. My bot sends two offers and waits for them to get accepted and show their offer id using manager.getOffer method, one of them shows the offerid while other shows undefined. Why is it so?
  16. community = new SteamCommunity({localAddress: ipAdress}); If i use IP V6 and add code as above Do Steamcommunity working ?
  17. For the error im getting this thing, its so long and annouying, how can i make it show only Error: The settings on this account do not allow you to add comments Error: The settings on this account do not allow you to add comments. at SteamCommunity.<anonymous> (C:\Users\JingYong-PC\Desktop\backpacktf-automatic-pro-master\node_modules\steamcommunity\components\users.js:151:13) at Request._callback (C:\Users\JingYong-PC\Desktop\backpacktf-automatic-pro-master\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\Users\JingYong-PC\Desktop\backpacktf-automatic-pro-master\node_modules\request\request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (C:\Users\JingYong-PC\Desktop\backpacktf-automatic-pro-master\node_modules\request\request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (C:\Users\JingYong-PC\Desktop\backpacktf-automatic-pro-master\node_modules\request\request.js:1091:12) at IncomingMessage.g (events.js:291:16)
  18. Hi! It's there a way to edit the profile summary and edit too the custom info box? Thank you.
  19. Hello, I am trying to run a program that runs currently 2 Steam Accounts. One main, and one BOT. I'm trying to make a SteamTradeFarm. Where it will BOT up the amount of trades done. So once I send the trade offer I want to control the other account and accept the trade and confirm the trade. The problem is this mainClient.on('webSession', function (sessionID, cookies) { manager.setCookies(cookies, function (err) { if (err) { console.log(err); process.exit(1); return; } console.log("Got API key: " + manager.apiKey); }); community.setCookies(cookies); community.startConfirmationChecker(30000, config.accounts.account1.identity_secret); // Checks and accepts confirmations every 30 seconds}); With this community does not specify an account. So is this okay should I just also run a botClient even for webSession and will it also be okay, because since if you are checking with community.checkConfirmations() will it check both or just 1?
  20. Hello, I perfom in bash npm install node-community but it gives me this error ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/node-steamcommunityERR! 404 ERR! 404 'node-steamcommunity' is not in the npm registry.ERR! 404 You should bug the author to publish it (or use the name yourself!)ERR! 404 ERR! 404 Note that you can also install from aERR! 404 tarball, folder, http url, or git url. Thanks
  21. i'll receive any captcha if i use 2fa(sharedsecret)?
  22. When accepting a deal, you need to make a mobile confirmation. In my case, the method acceptConfirmationForObject too often returns the HTTP error 429. Perhaps someone knows how to avoid it. I will be grateful for any help. Thank you.
  23. Hi there! First of all: Thank you for creating this library! Been using it for a while now (couple of years, actually) and love it! Keep it up! I recently started on a new bot for a new site I'm creating, and for some reason I got into som problems right away. I tried your "enable_twofactor.js", and for some reason I never get the SMS at this point: https://2rsvold.tinytake.com/sf/MTY5MDIxOV81NjM0ODQ1 The account I use have a working (verified) phone number, as I am able to enable this via my phone. I also thought that maybe this happened cause I already had this activate don my phone, so I tried removing it, going back to "steamguard mail", but the same issue happened? I tried to use "WinAuth" also, as I only need to get the "shared_identity" and not run this script every time I want to use the bot, but also "WinAuth" got "stuck" at the same step? Has there been any changes to the API that maybe stop us from using it this way, or am I doing something wrong? Note that I am using your code to perform this action: https://raw.githubusercontent.com/DoctorMcKay/node-steamcommunity/master/examples/enable_twofactor.js Hope you have som tips! Best regards, Patrick
×
×
  • Create New...