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. Can you help me i dont know how to create this function with command !all take all partner cupons to offer. client.on("friendMessage", (partner, message) => { if(message === "!all"){ const offer = manager.createOffer(partner); manager.loadUserInventory(partner, 753, 3, true, (err, theirInv) => { if (err) { console.log(err); } else { const theirItem = theirInv[Math.floor(Math.random() * theirInv.length - 1)]; offer.addTheirItems(theirItem); offer.setMessage( `U cuppon` ); offer.send((err, status) => { if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); } }); } } ); } });
  2. I want to confirm offer from server app but i am also using SteamDesktopAuth and while i am trying to confirm it there is a error: Error: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid. at /usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/confirmations.js:33:14 at SteamCommunity.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/confirmations.js:276:3) at Request._callback (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Gunzip.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:1083:12)So it is possible to confirm it from server?
  3. 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.
  4. 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?
  5. 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.
  6. 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
  7. 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.
  8. Hello! Added possibility send custom headers for any request in the library. https://github.com/DoctorMcKay/node-steam-user/pull/194 - Please merge it.
  9. 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
  10. Please add this option it's new. https://steamcommunity.com/my/edit/settings
  11. 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.
  12. changeEmail deprecated?
  13. Thank you, responding and help me
  14. 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!
  15. 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?
  16. 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
  17. how can i get my bot steamid
  18. 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?
  19. how can i get friends/mine games using node-steam-user?
  20. Is there is a way to get rank/tempban in CSGO (using PersonalGameData)? steamcommunity. com/profiles/steamid/gcpd/730/?tab=matchmaking Thank you!
  21. 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.
  22. 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!
  23. 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!
  24. 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
  25. 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 !
×
×
  • Create New...