Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steam-user'.

  • 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. friends.on("friendMsg", function(user, msg, type, details){ if(type == Steam.EChatEntryType.ChatMsg){ if(msg == "invite"){ client.on("getSteamLevels", function(user, callback){ client.getSteamLevels(user, callback) callback(results); if(results >= 10){ client.inviteUserToGroup(user, "steamgroupidhere") } }); } } }); Thats my code.Whats wrong it with?
  2. Hi, Today I found this awesome extansion I tried to use it. I implemented it in my codes Here's my problem: I want to get a message from a friend so I did: advFriend.on('friendMessage', function(steamID, message) { console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message); }); But when I send message to my bot, nothing appears in my console. Here's how I defined it before: // Requiresvar Steam = require("steam"),SteamGroups = require("steam-groups"),storage = require('node-persist'),util = require("util"),fs = require("fs"),csgo = require("../"),readlineSync = require("readline-sync"),crypto = require("crypto"),AdvSteamUser = require('steam-user'); // Objectsvar bot = new Steam.SteamClient(),steamUser = new Steam.SteamUser(bot),steamFriends = new Steam.SteamFriends(bot),steamGroup = new SteamGroups(bot),steamGC = new Steam.SteamGameCoordinator(bot, 730),CSGOCli = new csgo.CSGOClient(steamUser, steamGC, false),advFriend = new AdvSteamUser(),I can't find the error. I tried several times and solutions. I don't know from where it comes N.B : I don't have any error reports in my console
  3. Hello, steam-user docs has Event error At the same time, logon.js component is throwing errors during logOn calls if(this.client.loggedOn) { throw new Error("Already logged on, cannot log on again"); }There are couple of places (2? 3?) where Error is thrown. Why this discrepancy? It feels like some of the Error could be emitted, thus allowing client (as client == developer) handle them in the way they prefer. Right now I would have to wrap calls to logOn in try catch. Do I miss use case here? Thank you!
  4. Hello, What is the encoding of the avatar_hash buffer? Thanks.
  5. I am trying to build a basic group chat bot. At the moment it looks like this.. var User = require('steam-user') var bot = new User() bot.logOn({ 'accountName': process.env.USERNAME, 'password': process.env.PASSWORD }) bot.on('loggedOn', function (res) { console.log('Logged in!') console.log(res) bot.setPersona(User.EPersonaState.Online) }) bot.on('webSession', function (sessionID, cookies) { console.log('Got a web session!') }) bot.on('friendMessage', function (steamID, message) { console.log(`message from ${steamID.getSteam3RenderedID()}: ${message}`) }) bot.on('chatInvite', function (inviterID, chatroomID) { bot.joinChat(chatroomID, function (eresult) { console.log(eresult) }) }) bot.on('error', function (e) { console.log(e) }) The call to the joinChat method is successful but the EResult is a 7 - "InvalidProtocolVer". I've been searching for information about how to handle this type of error and was hoping that maybe someone here has encountered it before.
  6. How can i get the new websession cookies after they expire? e.x. so i can confirm trades. The only way i know it to basically restart the bot daliy.
  7. Hello, Is it possible to retrieve list of pending friend requests instead of listening to friendRelationship which will be emit once per invite?
  8. I am using node steam-user module in nodejs. When I am creating client using following code:- var client = new SteamUser({ promptSteamGuardCode: false }); I can't get into this function.It doesn't respond at all. client.on('loggedOn', function(detail) { console.log("Logged in with "); }); i have also tried on('debug') nothing works. please help. It works in my friends pc . OS-windows 7.
  9. So I am using csgonetwork 1.4 script in my site, and also I am using the bot they give, I have every thing done as they said, and I am running the bot on my pc, I instaled python and node.js and configure the bot/sell.js file as in instructions, I am also using Git Bash to execute the sell.js file, after I exe the command "node sell.js" I got this text So far every thing is good, my bot goes online and even had the status "want to trade" but after a wile I got this errors in the promp Well I never change that files mentioned ther, and I am used to work with codes, I used to have php, html, mysql... etc... at the school, even that is not my area I know how to read and use the codes and change what I need, but never worked with node before, and js even I have class about that it was not my best.. so if someone could help me I would appreciate btw some times executing the "node sell.js" command I got this error, but this one is related to steam bad connection at least is what I think since every IP show in there are valve related, only 2 are my db IP(that I am using inseted of "localhost") but I will hide that one and give you the info.
  10. Hi, I'm a little confused about the uses of steam-user. I'm creating a trade site and for the bot I'm using steam-client/steam-user/etc without problems. But in the website, I need get the info of a logged users into Steam for example their avatars. Is a good idea use steam-user for this kind of functionalities or I need other package that wrap the Steam Web Api like steam-web? Thanks.
  11. Hi, sometimes this happens: Offer #1248497400 changed: CreatedNeedsConfirmation -> Active /home/nodebots/node_modules/steam-user/components/web.js:9 if (this.steamID.type === SteamID.Type.ANON_USER) { ^ TypeError: Cannot read property 'type' of null at SteamUser.webLogOn (/home/nodebots/node_modules/steam-user/components/web.js:9:18) at tryOnTimeout (timers.js:224:11) at Timer.listOnTimeout (timers.js:198:5) Whats wrong?
  12. Hello all, Not sure if I'm posting this in the right place or if anyone can help me but I'm trying to make a trading bot for the first time and I'm having trouble trying to send a trade request to my friend. Here's the code: var SteamUser = require('steam-user'); // The heart of the bot. We'll write the soul ourselves. var SteamTrade = require('steam-trade'); var username = 'test'; var password = 'test'; // We have to use application IDs in our requests--this is just a helper var appid = { TF2: 440, DOTA2: 570, CSGO: 730, Steam: 753 }; // We also have to know context IDs which are a bit tricker since they're undocumented. // For Steam, ID 1 is gifts and 6 is trading cards/emoticons/backgrounds // For all current Valve games the context ID is 2. var contextid = { TF2: 2, DOTA2: 2, CSGO: 2, Steam: 6 } // Initialize the Steam client and our trading library var client = new SteamUser(); //steam client var trade = new SteamTrade(); //steam trade // Sign into Steam client.logOn({ accountName: username, password: password }); client.on('loggedOn', function (details) { logger.info("Logged into Steam as " + client.steamID.getSteam3RenderedID()); }); client.on('error', function (e) { logger.error(e); process.exit(1); }); client.on('webSession', function(sessionid) { trade.sessionID = sessionid; client.webLogOn(function(cookie) { cookie.forEach(function(part) { trade.setCookie(part.trim()); }); logger.info('Logged into web'); // No longer appear offline client.setPersonaState(steam.EPersonaState.LookingToTrade); }); }); client.trade('STEAM_0:1:55683311');I'm using some outdated tutorials from google ( I'm on the right track with it but I can't work out what I'm doing wrong. I keep running the script but my friend isn't getting a trade request so I don't know what I'm missing from it. Any help would be appreciated. Thanks, Adam
  13. Hi, if I try to create an Account, it logs in, but doesn't do anything after that: var SteamUser = require('steam-user'); var steam_user = new SteamUser(); steam_user.logOn(); steam_user.createAccount("*username*", "*password*", "*email*", function(result,steamid){ console.log(result); console.log(steamid); }); I also tried logging in as an actual user, but then the createAccount function still doesn't do anything, what am I doing wrong? Thank you in advanced.
  14. Hello, How can I add a friend if a friend request is received? I tried using addFriend(steamID), here's the code, am I doing something wrong? var SteamUser = require('steam-user'); var client = new SteamUser(); client.on("friend", function (steamID) { client.addFriend(steamID); } ); Thanks for the help! UKF
  15. Hello, I tried absolutely everything to run this bot (Idle Games) nothing works... but never figured out where is the problem.. Can somebody help me?
  16. Greetings All, I was curious if anyone has tested the workings of BlueBird with Node-Steam-User? Do we know if it works currently? I would love to move away from callbacks, and into promises if it's an easy transition. Ideas?
  17. You can use multiple apps by providing an array of any mixture of the above formats. How would I do that? Like this? client.gamesPlayed({ "game_id": 440 }, { "game_id": 730 });
  18. I use node-steamcommunity , steam-user , steam-trade-offer-manager modul. But sometime at night crash my steambot. Erorr: Error: read ETIMEDOUT\n at exports._errnoException (util.js:893:11)\n at TCP.onread (net.js:555:26)" What's this?
  19. Is it possible to login with steamcommunity and use steam-user, for example to talk in chat and accept/decline tradeoffers?
  20. Hello! Is there any function to get user nickname with steamid? Greetings, Turska
  21. Hello Dr, again me, the bot is wanting steam guard code, every three times try. Look at the logs, and this is code, var SteamCommunity = require ("steamcommunity"); var SteamTotp = require ("steam-totp"); var fs = require ("fs"); var TradeOfferManager = require ("steam-tradeoffer-manager") var market = require ("steam-market-pricing") var steam = require ('steam-user') var client = new steam(); var code = SteamTotp.getAuthCode('code'); var logOnOptions = { "accountName": "mabot", "password": "mapass", "twoFactorCode": code }; var offer = new TradeOfferManager({ "domain": "steamcommunity.com/id/akagna", "language": "en", "pollInterval": 5000 }); // LOGIN PART client.logOn(logOnOptions); client.on('loggedOn', function(details) { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); client.setPersona(steam.Steam.EPersonaState.Online); client.on('steamGuard', function(code) { console.log("Confirmed!"); }); }); client.on('error', function(e) { console.log(e); }); client.on('webSession', function(sessionID, cookies) { console.log("Got web session"); }); client.on('accountLimitations', function(limited, communityBanned, locked, canInviteFriends) { var limitations = []; if(limited) { limitations.push('LIMITED'); } if(communityBanned) { limitations.push('COMMUNITY BANNED'); } if(locked) { limitations.push('LOCKED'); } if(limitations.length === 0) { console.log("Our account has no limitations."); } else { console.log("Our account is " + limitations.join(', ') + "."); } if(canInviteFriends) { console.log("Our account can invite friends."); } });
  22. Hi, In the node-steam-user documentation under "getProductChanges" it states to get all product changes set sinceChangeNumber to 1. However when I try it out Steam only returns the current change number (currentChangeNumber) and no apps or packages. I'm just wondering if this is a change on Steam's behalf, restricting how far we can look back on the change list, or if there's a fix? You can also see an example of what I'm talking about here on the hosted express app - https://steampics-mckay.rhcloud.com/changes/1 Thanks!
  23. Hi, I'm trying to login using the loginKey. When I login the first time, the event is triggered normally so I can get the loginKey and store it somewhere. When I try to login for the second time, I seek if I have some loginKey, if found I pass it to the details object but I get the following error: Error: Illegal value for [object Object] of type string: object (not a string) Follow a snippet of my testing code: https://gist.github.com/williamokano/2b5c858e738a7829b6481095fb5deb30 And here is the stack trace https://gist.github.com/williamokano/fbd64eb8b3aec7bf8c50d7a7e12d0177
  24. I'm currently writing a bot management system and stuck on disconnecting bots. Whenever I call logOff() function, I get an error that crashes my application. events.js:276 throw new TypeError('listener must be a function'); ^ TypeError: listener must be a function at CMClient.removeListener (events.js:276:15) at SteamUser.logOff.SteamUser.disconnect (E:\Projects\steam-bot-manager\node_modules\steam-user\components\logon.js:151:14) ... The line 151 of logon.js is: this.client.removeListener('connected', this._onConnected);Any ideas why this happens? P.S. I already tried handling 'error' and 'disconnected' events. No success.
  25. Hi, when I use GetPersonas there's a possibility that the requested data would be unavailable. Unfortunately there's no error callback. How can I check it? I mean something like this: if (GetPersonas is unavailable) // do something...
×
×
  • Create New...