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. Alright it's been a while (like 2 years). IS there ANWAY to find identity secret now-a-days?
  2. I want to use changeEmail(options[, callback]), but it dont send me message on email.
  3. Hello I created script for creating steam accounts from csv file. Always script creating 2 account and next throw Error code: 84. I have inteval 1 minute every each loop. Its time limit and I need to extend this or other limit?
  4. I can't figure out why client.on('webSession', function(sessionID, newCookie){}); will not fire at all on my server client.on('loggedOn', function(details){}); works fine?
  5. Hello, I started to receive this error today when I try to start my bot. I've tried to google this but I haven't found any usefull informations on what's exactly wrong. First I've tried to wait 10 minutes and start the bot again, same problem, then I tried to wait 20 minutes and start, then I tried to wait 1 hour and start the bot, it didn't help. How much more should I wait or how should I avoid getting this error? If you need any more informations from me, I'm provide anything, I'm just not sure what would be helpful
  6. Hey, I started using Node.js and javascript a short time ago. I was trying to display my own username in console after logon. And if that worked, I'd try for others. I was hoping if you could help me. This is my code: client.on('loggedOn', function() { console.log("[Steam-BOT] Logged in as " + client.steamID); var botSteamID = [client.steamID]; var clientName = client.getPersonas(botSteamID); }); So I thought this was the way to go but, clientName stays unidentified. I do not know what I am doing wrong Thanks in advance!
  7. Hello! I'm new in the module/forum, as i can see is very interesting module and i'm having fun using it. But right now i found something i want and i can't find a way. When i just disconnect my computer running the bot from internet and i reconnect (can take 5 secs, 10 secs), as long as bot stays "Online"... in my main account running official steam client if i start a conversation with the bot i can see a handled message "Handled message: ClientFriendMsgIncoming", and more like if i change my status "Handled message: ClientPersonaState". ...but let's imagine, if my internet goes down for 5mins... The bot is not anymore Online and goes Offline... The bot is actually running but i guess its like dead but maybe only for chat functionality because im Offline, didn't test events that dont need chat to be online, give me info about this please. How i can make it goes online again and work again if my internet goes online, there is a autoRelogin but is for steam disconnects not my internet disconnects im right? Thanks!
  8. This is demo code : user.on('tradeRequest', function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", accepting"); respond(true); }); I want addFriend when user trade request ? But event tradeRequest not Emitted ? Please help me ! Thanks
  9. Hi, I've been been messing around with this and got it to tts to work with steam messages. But I can not find a display name option? So I know who sent me a message or sent a friend request, Thanks.
  10. Hi. Is this event triggered even when someone invites bot to friends while he's offline and then the bot is being turned on? I need t cancel every request sent while the bot was offline
  11. Hey, I'm assuming you would use getPersonas to get the nickname of the user that the 'bot' account has set for that user, this is my response. { '76561198144520197': { persona_state: 1, game_played_app_id: 0, game_server_ip: 0, game_server_port: 0, persona_state_flags: 256, online_session_instances: 4, published_instance_id: 4, persona_set_by_user: null, player_name: 'madgamer69', query_port: 65535, steamid_source: Long { low: 0, high: 0, unsigned: true }, avatar_hash: ByteBuffer { buffer: <Buffer 08 ff 1f 12 3a 09 05 80 fb 0a 01 00 10 01 7a 0a 6d 61 64 67 61 6d 65 72 36 39 fa 01 14 dc 5f 39 0c 61 4b 53 33 23 07 d2 d5 32 59 5e d2 0f 31 72 38 e8 ... >, offset: 29, markedOffset: -1, limit: 49, littleEndian: true, noAssert: false }, last_logoff: 2017-01-01T13:33:02.000Z, last_logon: 2017-01-02T03:11:08.000Z, clan_rank: null, game_name: '', gameid: 0, game_data_blob: ByteBuffer { buffer: <Buffer 08 df 06 12 68 09 05 80 fb 0a 01 00 10 01 10 01 18 00 20 00 28 00 30 80 02 38 04 40 04 7a 0a 6d 61 64 67 61 6d 65 72 36 39 a0 01 ff ff 03 c9 01 00 00 ... >, offset: 109, markedOffset: -1, limit: 109, littleEndian: true, noAssert: false }, clan_tag: null, facebook_name: null, facebook_id: null, avatar_url_icon: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/dc/dc5f390c614b53332307d2d532595ed20f317238.jpg' avatar_url_medium: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/dc/dc5f390c614b53332307d2d532595ed20f317238_medium.jpg' avatar_url_full: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/dc/dc5f390c614b53332307d2d532595ed20f317238_full.jpg'} } I have checked it is the correct steam id, they are friends, the account is online (as you can see by the persona_state). Is it possible to grab a nickname for a user using this method? I'm guessing it's: persona_set_by_user, however it is responding as null. Here is a screenshot of the account in question: http://i.imgur.com/42HCAII.png
  12. Im connected with steam. I want to log off, and then log in. How Can I do it? I've tried doing Client.logOff(), Client.logOn(details); but it returns that im already logged. Thanks in advance
  13. When i try to npm install steam-user i get: root@bot1:~# npm install steam-usernpm ERR! 404 Not Foundnpm ERR! 404npm ERR! 404 'doctormckay/steam-crypto' is not in the npm registry.npm ERR! 404 You should bug the author to publish itnpm ERR! 404 It was specified as a dependency of 'steam-user'npm ERR! 404npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, or http url, or git url. npm ERR! System Linux 2.6.32-042stab120.6npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "steam-user"npm ERR! cwd /rootnpm ERR! node -v v0.10.29npm ERR! npm -v 1.4.21npm ERR! code E404npm ERR!npm ERR! Additional logging details can be found in:npm ERR! /root/npm-debug.lognpm ERR! not ok code 0
  14. my bot can connect to server after connect bot say "Steam Guard App Code:" i put code but bot can accept confirmation. i buy new ip to my server and change it, but bot donest work( http://prnt.sc/dnkmj3 code " var config = { //i delete } var fs = require('fs'); var auth = require('http-auth'), scribe = require('scribe-js')(), app = require('express')(); var console = process.console; var SteamUser = require('steam-user'); var TradeOfferManager = require('steam-tradeoffer-manager'); var SteamTradeOffers = require('steam-tradeoffers'); var SteamTotp = require('steam-totp'); var SteamcommunityMobileConfirmations = require('steamcommunity-mobile-confirmations'); var CMClient = require('steam-client').CMClient; var clientIP = new CMClient(); clientIP.bind('myips'); var offers = new SteamTradeOffers(); var client = new SteamUser(clientIP); var trades = new TradeOfferManager({ steam: client, domain: 'domain', language: "en", pollInterval: 1000 }); function steamBotLogger(log) { console.tag('SteamBot').log(log); } client.logOn({ accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.secret) }); console.log('1'); client.on('loggedOn', function (details) { console.log('taders',details); steamBotLogger("Logged into Steam as " + client.steamID.getSteamID64() + " | NEW BOT "); //client.setPersona(SteamUser.Steam.EPersonaState.LookingToTrade, 'free'); BotSteamID = client.steamID.getSteamID64(); }); console.log('2'); client.on('disconnected', function () { botLogged = false; WebSession = false; steamBotLogger("Bot Disconnected !"); setTimeout(function () { client.logOn({ accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.secret) }); }, 10000); }); client.on('webSession', function (sessionID, cookies) { steamBotLogger("Got web session"); trades.setCookies(cookies, function (err) { if (err) { steamBotLogger('Unable to set trade offer cookies: ' + err); process.exit(1); } steamBotLogger("Trade offer cookies set. Got API Key: " + trades.apiKey); offers.setup({ sessionID: sessionID, webCookie: cookies, APIKey: trades.apiKey }); WebCookies = cookies; WebSession = true; AcceptMobileOffer(); confirmTimer = setInterval(function(){AcceptMobileOffer();},5000); }); }); var hash = require('crypto').createHash('sha1'); hash.update(Math.random().toString()); hash = hash.digest('hex'); var device_id = 'android:' + hash; function AcceptMobileOffer() { console.log('dasdad'); var steamcommunityMobileConfirmations = new SteamcommunityMobileConfirmations( { steamid: BotSteamID, identity_secret: config.identity_secret, device_id: device_id, webCookie: WebCookies, }); steamcommunityMobileConfirmations.FetchConfirmations((function (err, confirmations) { // console.tag('SteamBot', 'MobileTrades').log('AcceptMobileOffer received ' + confirmations.length + ' confirmations'); if (err) { console.log(err); return; } if (!confirmations.length) { return; } confirmations.forEach(function(conf) { steamcommunityMobileConfirmations.AcceptConfirmation(conf, (function (err, result) { if (err) { console.log(err); return; } if (result) { console.tag('SteamBot', 'MobileTrades').log('Mobile offer Accepted !'); process.exit(); return; } }).bind(this)); }); }).bind(this)); } "
  15. Hello ! I make multiple bots , and i want to make proxy or somehow change ips. How i can do it? I make; var SteamUser = require('steam-user');var SteamTradeOffers = require('steam-tradeoffers'); var client = new SteamUser('185.28.193.95'); client.logOn... Big thanks for help !
  16. Hi, I'd like to know if it's possible to retrieve an application ticket for a specific app. I believe the publisher is using the application ticket directly to generate a sessionID for the client. This token is used to authenticate requests to the game's API, which I would like access to for the purpose of developing a community web app. The token expires after 15 minutes and the application ticket after an hour, so it's necessary to be able to generate my own token for things like user registration to pull player data as needed. The only alternative to this is creating a database of all players' data and updating regularly. The application ticket to which I'm referring is referenced in the Steamworks documentation as shown below:
  17. Hi! I'm tryng to use changePassword function, but it returns eresult: 8 It doesn't works, or I just use it wrong? Thanks. There is the sample code which I use: client.requestPasswordChangeEmail(password, function(err) { console.log("Req: "+ err); var rl = require('readline').createInterface({ "input": process.stdin, "output": process.stdout }); rl.question('Code: ', function(code) { client.changePassword(password, newpassword, code, function(err) { console.log(err);} ); console.log(code); rl.close(); }); });
  18. Hello everyone! Just a really quick question. Let's say I want my bot to run 24/7. How can I make sure it won't stop at all? I don't really mean like: 1. Keep your computer / bot running on your local machine 24/7. 2. Buy a VPS and run the bot on that machine. Because that is quite obvious. I mean like, the session not expiring. Is the following code enough to make sure that my steambot runs 24/7 on a Raspberry Pie for example? client.on("webSession", function(steamID, cookies) { logger.debug("Got web session"); setInterval(function() { client.webLogOn(); }, 1000*60*60); /* And some more stuff which need cookies */ });Thanks for your help!
  19. Hello! Thanks in advance! With node-steam-user can i fetch/take Steam IDs from my BOT`s friend list ? and after make a loop with friends`s Steam IDs to find more Steam IDs from their friend list..
  20. Hello, how i can bind ip to node-steam-user? I binded to node-steamcommunity, but i still getting RateLimitExceeded.
  21. Hi to everyone. I'm new in nodejs (in english too:) ) and can't understatnd async logic... i try to create accounts in cycle but nothing work. I will be very happy if somebody type simple working code )
  22. I've been looking through the documentation and I don't see a way to do join a public group without being invited. If it was purposely omitted, I could see why, but I don't see anything saying that.
  23. So I was working on my code and I'm getting this response from console: Verifying Login information (node:2680) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:2680) DeprecationWarning: Calling an asynchronous function without callback is deprecated. Here's the code: var fs = require('fs'); var Steam = require('steam'); var SteamUser = require('steam-user'); var client = new SteamUser(); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var community = new SteamCommunity(steamClient); var steamClient = new Steam.SteamClient(); var steamUser = new Steam.SteamUser(steamClient); var steamFriends = new Steam.SteamFriends(steamClient); var config; try { config = JSON.parse(fs.readFileSync('./config.json')); } catch (err) { console.log("Error: I couldn't parse config.json file"); console.log(err); process.exit(1); } console.log("Verifying Login information") client.setOption("promptSteamGuardCode", false) client.logOn({ "accountName": config.username, "password": config.password }); client.on("webSession", function (SteamID, cookies) { community.setCookies(cookies); SteamTotp.steamID = config.steamid; community.startConfirmationChecker(2500, config.identity_secret); }); client.on("LoggedOn", function (details) { client.setPerson(Steam.EPersonaState.Online) client.gamesPlayed(440) console.log("Logged on to steam!"); }); client.on("steamGuard", function (domain, callback, lastCodeWrong) { if (lastCodeWrong) { console.log("Last code used was wrong, Please try again."); } var shared_secret = config.shared_secret; callback(SteamTotp.generateAuthCode(shared_secret)); }); Please help :c
  24. Hi I'm using getPersonas to retrieve people's username from a steam id but when I'm calling it ir returns me an error. I've checked npm and I have the last version of steam-user. Is it uncompatible with node-steam? var ids = steamids.map(function(id) { ^ TypeError: steamids.map is not a function at SteamUser.getPersonas (***/node_modules/steam-user/components/friends.js:119:21) P.S:I didn't forget to call the lib: // Requires var Steam = require("steam"), SteamGroups = require("steam-groups"), User = require('steam-user'), util = require("util"), fs = require("fs"), csgo = require("../"), readlineSync = require("readline-sync"), crypto = require("crypto"), pg = require('pg'); // Objects var 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), advUser = new User();
  25. Hello, how can I check if a user is in the friendlist of the bot? Thank you very much. With best regards Maro
×
×
  • Create New...