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. 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') } }); } })
  2. 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; }); } }); });}
  3. I need get steamid after login in acc. How can i do this?
  4. getUserInventoryContents does not load actions, but getReceived items loads why?
  5. 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
  6. 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) } }) } })
  7. 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);// });
  8. 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.
  9. 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}`); }
  10. There is any limit in getUserInventoryContents() ?, i mean, steam rate limits or anything that may freeze my bot, or may cause errors?
  11. 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?
  12. community = new SteamCommunity({localAddress: ipAdress}); If i use IP V6 and add code as above Do Steamcommunity working ?
  13. Hi! It's there a way to edit the profile summary and edit too the custom info box? Thank you.
  14. 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)
  15. 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?
  16. 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
  17. i'll receive any captcha if i use 2fa(sharedsecret)?
  18. 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.
  19. 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
  20. Hello, I want to make a script that'll automatically write a custom message to everyone who invites me to play CS:GO. How can I do it? And I'm a very big noob in JavaScript and Node.JS and because of it I beg you to explain everything step-by-step.
  21. if(err.message == 'SteamGuard') { console.log('[STEAM] '+account.username+' an email has been sent to your address at '+err.emaildomain); return false; } err.emaildomain is empty why? https://github.com/DoctorMcKay/node-steamcommunity/blob/master/index.js#L136
  22. I am using this library var Steam = require('steam'); //use npm install [email protected] - this code isn't compatible with the latest version. var SteamTradeOffers = require('steam-tradeoffers'); //use npm install [email protected] - this code isn't compatible with the latest version.var mysql = require('mysql'); and getting offer.setup error , i update my steam-trade offer library from 1.2.3 library . and now getting this error before this i used steam tradeoffer library and got thie error steamcommunity.read. i wanna set up my bot . any solution please. would u provide me.
  23. sometimes i got: There was an error accepting this trade offer. Please try again later. (16) but a few seconds later, the offer is accepted, and the event receivedOfferChanged is fired in ateast 10~30 seconds how can i fix or, make the receivedOfferChanged event more quicker?
  24. So currently I write my bot on my regular computer, and once it's tested I upload it to my RaspberryPi so it could continue to run while my computer is off. However, this brings the issue that when there's a trade offer that needs to be confirmed it gives me this error: Error: Could not find confirmation for object $offer.id Is there some sort of "cooldown" period for it to be able to work from the Pi or some way to reset it? I guess it shouldn't be a problem once the bot is finished, but whilst I'm developing it I'd like to be able to run it from both my computer and R.Pi. Thanks
×
×
  • Create New...