Jump to content
McKay Development

Search the Community

Showing results for tags 'node.js'.

  • 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. I don't understand what to put in the username and password fields, My main steam account? I've got it logged it but i left the two fields and twoFactorCode Blank. Do I manually register a new steam account through steam? I'm trying to make a trading bot. I understand this is a stupid question, any help would be appreciated.
  2. is there any method to find group by ID64? I know how to grab groupID64, for example: https://steamcommunity.com/groups/multiplay/memberslistxml/?xml=1 but if somebody change URL, how can I find group with only ID64?
  3. Hello I guess i can`t manage to setup sentOfferChanged event. This is my code: const SteamUser = require('steam-user'); const TradeOfferManager = require('steam-tradeoffer-manager'); const fs = require('fs') // steam 2fa. generate steam guard code for login. const SteamTotp = require('steam-totp'); const bot = new SteamUser(); const manager = new TradeOfferManager({ steam: bot, language: 'en' }); if (fs.existsSync('polldata.json')) { manager.pollData = JSON.parse(fs.readFileSync('polldata.json').toString('utf8')); } bot.logOn({ accountName: 'user', password: 'password', twoFactorCode: SteamTotp.generateAuthCode('secret') }); bot.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); sendRandomItem(); }); function sendRandomItem() { console.log('Sending the offer') const partner = 'trade_url'; const offer = manager.createOffer(partner); offer.addTheirItem({ assetid: "id", appid: 730, contextid: 2 }); offer.setMessage( `HIIII` ); offer.send((err, status) => { if (err) { console.log({err}); } else { console.log(`Sent offer. Status: ${status}.`); } }); }; manager.on('sentOfferChanged', function (offer, oldState) { console.log(`Offer #${offer.id} changed: ${TradeOfferManager.ETradeOfferState[oldState]} -> ${TradeOfferManager.ETradeOfferState[offer.state]}`); }); manager.on('pollFailure', function (err) { console.log({err}) }) manager.on('pollData', function (pollData) { fs.writeFileSync('polldata.json', JSON.stringify(pollData)); }); This is polldata.json {"sent":{"3358172656":2}} Console log $ node ./modules/bot Sending the offer Sent offer. Status: sent. But when i accept or decline the offer sentOfferChanged doesnt fire up.
  4. Hello, I want to make a website about my group member statistics (like Steam Level, Games, etc) using React After i installing node-steamcommunity and i want to trying the module, i got an error 44 | } // Report stats hourly, and immediately in 10 minutes 45 | 46 | 47 | setInterval(reportStats, 1000 * 60 * 60).unref(); 48 | setTimeout(reportStats, 1000 * 60 * 10).unref(); 49 | 50 | if (isDebugging()) { setupReportingD:/testing/node_modules/@doctormckay/stats-reporter/index.js:47 Did I make a mistake?Thank you
  5. I know that we can set a message to trade offers that we send. I'm wondering how to get/extract the message in incoming trade offers.
  6. Hello! Added possibility send custom headers for any request in the library. https://github.com/DoctorMcKay/node-steam-user/pull/194 - Please merge it.
  7. hello i need the inventory value from a Steamid64. How do i do that. Sry that iam asking but iam kinda new here thanks for ur help
  8. Please add this option it's new. https://steamcommunity.com/my/edit/settings
  9. Since the latest UI update I'm not able to get this event, does anyone know what changed? I can't even get a simple console.log out of it anymore.
  10. I got loginKey after first login with twofactorcode, and then i was loggining with this loginKey, but after time i got this error: InvalidPassword. Password was valid! I removed line with loginKey option, and typed my twofactorcode and everything is fine for the moment, why did it throw invalidPassword? Thanks!
  11. Hey, I have a problem with changeEmail function. It worked for me untill 2 October 2018, but now when I am trying to use it, it says Access Denied. Can you check it and tell me what happened?
  12. log('authCode'); let client = new Steam.CMClient(); let user = new SteamUser(client, {enablePicsCache: true, promptSteamGuardCode: false}); log("http://" + proxy); client.setHttpProxy("http://" + proxy); user.logOn({"accountName": username,"password": password, "authCode": code}); user.on('error', function(e) { console.log(e); closeConnection(user); }); user.on('steamGuard', function(domain, scallback) { console.log('authCode: badCode'); closeConnection(user); }); user.once('loggedOn', function(details) { log("authCode: loggedOn"); });log: UPD: proxy is't valid, please add error that proxy isn't valid
  13. client.on('wallet', function(hasWallet, currency, balance) { if (balance >= 0) { let playThis = CONFIG.PLAYGAMES; playThis = playThis.toString().replace(/replacebalance/,"游戏代购 ¥:" + balance); console.log("### This bot have Wallet Balance: " + balance) wallet = balance; } }); client.on("friendMessage", function(steamID, message) { if (message == "!check") { client.chatMessage(steamID, "我账号上面还有:¥" + wallet); }; }); hello every one i user this code can check my bot wallet, is there any possible i can get how many csgokeys my robot has?
  14. how can i get friends/mine games using node-steam-user?
  15. Is there is a way to get rank/tempban in CSGO (using PersonalGameData)? steamcommunity. com/profiles/steamid/gcpd/730/?tab=matchmaking Thank you!
  16. hello every one, i make promptSteamGuardCode is true so i can remove the SHAREDSECRET from my servers and i input the Guardcode every time now i want make the same thing to my accountName and password, so i can remove my USERNAME and PASSWORD from the servers, i thought it is safe. haker can't get my account after he get my servers. so , what should i do now , i search from the google and i get a way to use readline but it is so hard to me, may be i can get a easy way from here.
  17. Hey there! Is it possible by creating a custom POST request, node-steamcommunity will supply me with the needed cookies? Should I use postman to see what's needed? Besides from that, I need to know where I should request it, what about a RESTful API of some sort? If someone would help me with all this it would be amazing, I'm at a dead end. Thanks!
  18. I saw a post 2ish months ago saying that basic 'new chat' support had been added to v4 of node-steam-user. How basic is that basic support? I ask because I've been trying to get chatMessage ID Event functionality working, but it doesnt appear to be triggering. This is not to say it is the module that is broken, because I am rewriting a bot I havent touched in 3 years to combine steamcommunity/player/client into 1 since it is basically an auto-reply bot. Can you confirm which features you were able to get 'fixed' for the new client, and which ones will have to wait until v4 is completed so you can hash them out? Thanks!
  19. log: 0|start | TypeError: Cannot read property 'getSteamID64' of null 0|start | at /root/start.js:623:34 0|start | at /root/start.js:636:5 0|start | at /root/start.js:683:5 0|start | at Request._callback (/root/start.js:833:11) 0|start | at Request.self.callback (/root/node_modules/request/request.js:185:22) 0|start | at emitTwo (events.js:126:13) 0|start | at Request.emit (events.js:214:7) 0|start | at Request.<anonymous> (/root/node_modules/request/request.js:1161:10) 0|start | at emitOne (events.js:116:13) 0|start | at Request.emit (events.js:211:7)code: user.once('webSession', function(sessionID, cookies) { callback(apps, user.steamID.getSteamID64(), lockCode); });first time i got this error
  20. Hi there, I'm trying to get my bot to accept friends request from members from my group. My code is not fully working, it keep getting errors at "community.groups(steamid). Here is my code: client.on("friendRelationship", (steamid, reletionship, name) => { if (reletionship === 2) { var userGroups = community.groups(steamid) if (userGroups.indexOf(wantedGroupID) != -1) { client.addFriend(steamid); client.chatMessage(steamid, `Thank you for adding me!`); console.log(`Friends request from ${name} accepted, IdleNet member. SteamID: ${steamid}`); } else { client.removeFriend(steamid); console.log(`Ignored friends request from ${name}, not in the IdleNet group. SteamID: ${steamid}`); } } });This is before my code: const SteamUser = require('steam-user'); const SteamTotp = require("steam-totp"); const SteamCommunity = require("steamcommunity"); const TradeOfferManager = require("steam-tradeoffer-manager"); var wantedGroupID = 'groupid'; const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: "en" }); const logOnOptions = { accountName: 'name', password: 'pass', twoFactorCode: SteamTotp.generateAuthCode("secret") }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online) client.gamesPlayed("Testing"); }); client.on("webSession", (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, "secret"); }); Could someone help me ? Thanks !
  21. Hey there, I'm not sure if this is the right section to post something like this, but I'm in need of a bot that basically purchases a game and send it as gift to users that bought that game (from me) in another website. Since Valve decided to erase the gift system, I'd need a bot that makes what I do manually (purchase, send as gift, etc.) There's a "platform" doing something similar (or identical): http://playxedeu.com/ Any ideas? Thanks!
  22. I'm attempting to get a bot working from the tutorial located at https://github.com/andrewda/node-steam-guide, but I seem to have run into a problem. I've been trying for several hours to get the bot to recognize the "steamcommunity" module on chapter 2.2, but nothing I've tried has worked. I've tried everything from redownloading the associated module to a full reinstall of everything related to the bot. Any help would greatly be appreciated. The error I get upon attempting to debug using my editor Copied directly from my editor, I narrowed the issue down to line 3 in a previous test, but haven't been able to figure it out. The first screenshot shows the admin console with the command I used to download the module as well as the node_modules and steamcommunity folders. The second screenshot shows the output of the node.js window.
×
×
  • Create New...