Jump to content
McKay Development

Search the Community

Showing results for tags 'question'.

  • 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'm getting a lot of errors 26, and i have maked the bot to handle gived and received items, and if any error comes up, completely reload inventory, but still there are errors 26 all the time, so this event will for sure be fired ?? Constructor i'm using.↓↓ new TradeOfferManager({ "steam": client, "language": "en", "community":community, "pollInterval": "10000", "cancelTime": "7200000" });
  2. I'm using pm2. When steam go down pm2 automaticly restarting bot, and then i've got error: RareLimit Exceeded How to fix this?
  3. I have already changed the promptSteamGuardCode to false, and maked a steamGuard handler this.getCode(shared, function(code) { callback({ "accountName": login, "password": pw, "twoFactorCode": code, "rememberPassword":true, "promptSteamGuardCode": false }); }); client.on('steamGuard', function(domain, callback) { helper.getCode(config.sharedse, function(code){ callback(code); }); });But sometimes i still got the Steam app code request, and i have to restart the node..
  4. Hi Doc, I'm just really curious, with the scarcity of proper documents on how to use the Steam API here's some general questions I got. 1. From scratch how do you build the login through steam? I know the implementation of logging in through steam using the site, but how do you do it programatically? 2. How do you listen for trade offers? Does steam have websockets that will send to your account? Thanks alot
  5. Hello, Ive got some questions regarding steam trade offer manager. The first one - can I use single polling file for multiple bots instances? The second - how many trades can I send and have pending at one time? I don’t know what limit should I set on my page. All answers will be appreciated. Thanks in advance.
  6. windows system ! "C:\Program Files\JetBrains\WebStorm 2017.1.3\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" E:\nodework\nodeSteam\doctor-node-steam-tradeoffer-manager-master\examples\offloader.jsSteam Guard App Code: R6B8KLogged into SteamGot API key: <censored>Found 7H1Z1 Kill itemsOffer #2242951795 sent, but requires confirmationError: 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
  7. Hi, so I need a bit of help on making a bot using node-steam, and I've noticed that there's only node-steam-user on this forum which might not be the same as node-steam so I thought I might as well post in general. I'm making this bot and I want it to automatically message people who message the bot with a predefined message: var Steam = require('steam'); var fs = require('fs'); var bot = new Steam.SteamClient(); if (fs.existsSync('sentryfile_' + process.argv[2])){ var sentry = fs.readFileSync('sentryfile_' + process.argv[2]); console.log('[BOT] logging in with sentry '); bot.logOn({ accountName: process.argv[2], password: process.argv[3], authCode: process.argv[5], shaSentryfile: sentry }); }else{ console.log('[BOT] logging in without sentry'); bot.logOn({ accountName: process.argv[2], password: process.argv[3], authCode: process.argv[5] }); } This is my first bot in js and I can't see the predefined functions of node-steam anywhere... Thanks.
  8. Is it possible to login without asking for the users password and retain much or all of the functionality of steam-user? This page Says that asking users for a username and password is against the terms of use. Obviously this isn't an issue for yourself or friends but on the very off chance the app or website using steam-user gets popular i'd hate to have valve get annoyed about it. They say to use openID however, from what i can tell, all that will do is return to you the steam user id that the user was authenticated as... Obviously this isn't that great for say, trading, or sending messages, or setting personas or avatars ( which uses the web cookies ). I'm not familiar with openID so maybe more is returned but it after a bit of digging i don't think that's the case. Obviously after a user has logged in once i can set "remember password" and just hope that the loginkey stays valid for a long time. Essentially i'd like to let users login but not directly have to ask them for their password
  9. Hello, I own a trade bot. This evening I have noticed that my bot began to behave strangely. It starts disconnecting from Steam and changes its status to offline. Logs are totally clean. No errors. Also, I am using a function "webLogOn" to destroy expired session and re-create it. Do you have any suggestions?
  10. i'll receive any captcha if i use 2fa(sharedsecret)?
  11. Hey everyone, I'll first give you a background story so you get an idea of what I'm trying to do. I'm interested in adding 100 accounts in one steam group all done by a bot. I succesfully made myself a bot that creates a random generated username and password saved in a .txt file on my Desktop. What I want to do now is either make it so when I create a Steam Account it will automatically join the group OR I make a bot that scrapes all the username:password logins from that .txt file and logs in on them and joins my group. I think the first option is way easier, that's why I tried it; const SteamUser = require("steam-user"); const SteamCommunity = require("steamcommunity"); const client = new SteamUser(); const community = new SteamCommunity(); var colors = require("colors"); var fs = require("fs"); var groupID64 = "103582791458129100"; var Username = "username" + String(Math.trunc(Math.random() * 1000000)); var Password = "password" + String(Math.trunc(Math.random() * 1000000)); const SteamID = require("steamid"); const groupID = new SteamID(groupID64); client.logOn(); client.on("loggedOn", () => { console.log("Logged into Steam".cyan); client.createAccount(Username, Password, "[email protected]", function(result){ if (result === 1) { fs.appendFile("Desktop/text.txt", Username + ":" + Password + "\n", function(err) { if(err) { console.log(err); } else { console.log(Username + ":" + Password + " - Saved.".green); client.logOff(); // NOT WORKING? console.log("Logging off Steam".red); const logOnOptions = { accountName: Username, password: Password }; client.logOn(logOnOptions); client.on("loggedOn", () => { console.log("Logged into Steam".green); client.gamesPlayed("BOT Testing"); community.getSteamGroup(groupID, function(err, group) { group.join(function(err) { if (err) console.log('error', err); }); }); }); //process.exit(1) } }); } else { console.log("ERROR: ".red + result); process.exit(1) } }); }); This outputs: Logged into Steam username625656:password356952 - Saved. Logging off Steam C:\Users\Admin\node_modules\steam-user\components\logon.js:11 throw new Error("Already logged on, cannot log on again"); ^ Error: Already logged on, cannot log on again at SteamUser.logOn (C:\Users\Admin\node_modules\steam-user\components\logon.js:11:9) at C:\Users\Admin\account-maker.js:33:13 at FSReqWrap.oncomplete (fs.js:123:15) My guess is that my client.logOff(); doesn't work. Is there a way to fix this? Regards lad
  12. const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); const logOnOptions = { accountName: 'hereismylogin', password: 'hereismypassword', twoFactorCode: SteamTotp.generateAuthCode('hereismysharedsecret') }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log(' > Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies, function(err) { if (err) return console.log(err); console.log(" > Got API key!"); }); community.setCookies(cookies); community.startConfirmationChecker(6000, 'hereismyidentitysecret'); }); manager.on('newOffer', (offer) => { client.gamesPlayed("Steam Test Bot by Cubson [Busy]"); if (offer.partner.getSteamID64() === 'firsttrustedguysteamid' || 'secondtrustedguysteamid') { offer.accept((err, status) => { if (err) { console.log(err); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); } else { community.checkConfirmations(); console.log(`Accepted offer. Status: ${status}.`); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); } }); } }); What's wrong? 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. P.S. Maybe update to IPB 4?
  13. 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.
  14. I need some help with my bot.. so here is my problem.. I tried making an if statement like this: client.on('friendMessage', function (steamID, message) { if(steamID == '765611......'){ client.chatMessage(steamID, 'Working...'); } else { client.chatMessage(steamID, 'You are not my master!'); } }); But everytime i send the bot something it sends "Working..." but i want it to only respond with a command like !help or !test Any help or suggestions would be helpful.
  15. Hi, I want to verify if a trade url belongs to an user, I have both the steamid64 and the trade url with access token. How would I do this without creating an offer and checking if the steamid64 I have matches offer.partner.getSteamId64();? Thanks
  16. Hello i am currently making my own bot . I have got to the point where everything works except chat functions sort of. The bot responds to people when they type yet i cant get it to respond if lets say this. friends.on("friendMsg", function(user, msg, type){if(type == Steam.EChatEntryType.ChatMsg){if(msg == "ping"){friends.sendMessage(user, "Pong!"); if they say Ping it does not respond yet i wish to make it so it will respond no matter how i write it.
  17. Hello, I'm trying to use function getExchangeDetails, to get old asseit and new_assetid, but if I type offer.getExchangeDetails(function(err, receivedItems) { if(!err) { console.log("New items: " + receivedItems); console.log(receivedItems[0].new_assetid); console.log(receivedItems[0].assetid); } else { console.log("[ERROR] Loading offer items details."); } });the output is: 3 (But items count was 4, maybe 0 is number too) undefined or TypeError: Cannot read property '0' of undefined undefined or TypeError: Cannot read property '0' of undefined I don't know where is the mistake, somebody can explain to me, please? Thanks, Alex.
  18. The bot do the logon() and webLogon() with sucess, and use methods like getUserInventoryContents() with no problems, but every time the bot try to accept a confirmation for a trade offer (acceptConfirmationForObject()), the event sessionExpired is fired, and the offer is not accepted, any idea of how can i fix and why is that happening? This is my code: var client = new SteamUser(); var community = new SteamCommunity(); var manager = new TradeOfferManager({ "steam": client, "language": "en", "community":community }); client.on('webSession', function(sessionID, newCookie) { log('Loading APIKey..'); community.setCookies(newCookie); manager.setCookies(newCookie, function(err){ if(err){ logError(err, "webSession"); return; } log('Got APIKey: '+manager.apiKey); }); }); community.on('sessionExpired', function(err) { log('sessionExpired!, WebRelogin..'); if(err){ logError(err, 'sessionExpired'); } client.webLogOn(); }); manager.on('newOffer', function(offer) { var partner=offer.partner.getSteamID64(); if(partner==admin){ log("New offer #" + offer.id + " from owner"); offer.accept(function(err, res) { if (err) { Message(admin, "Unable to accept offer: " + err.message); } else { if(res == "pending"){ community.acceptConfirmationForObject(identity, offer.id, function(err, responsecm){ if (err){ Message(admin, "" + err); return;} log("Offer accepeted!"); }); } else { log("Offer accepeted!"); } } }); } }); function makeOffer(target, itemsFromMe, itemsFromThem){ var offer = manager.createOffer(target); offer.addMyItems(itemsFromMe); offer.addTheirItems(itemsFromThem); offer.send(function(err, status) { if (err){ Message(target, ""+err); } if (status == 'pending') { community.acceptConfirmationForObject(identity, offer.id, function(err) { if (err) { logError(err, "acceptConfirmationForObject"); } else { Message(target, "Trade offer sent!!"); } }); } else { Message(target, "Trade offer sent!!"); } }); } the function Message, log, and logError is already defined and working fine, so i have no clue what is going on zZzZzZzz some help here
  19. 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?
  20. Hi there, Is there a way to save sent offers to a file (save some needed information in it + the tradeoffer), that when this offer is accepted (or declined) that you run a block of code attached to this file ? As I see it now with the "receivedOfferChanged" you can only check if the offer is changed and do something with the steamid from the recipient. I want to run code which also use mySQL databases, so I need a way to save offers. If this is too much to ask it's alright. Thanks anyway ! Seeringfate
  21. I am entirely new on java script and learning on day by day, i want to get on sending the items in a steam bots inventory. Sending it one by one and loops until the inventory is empty. Sorry for the trouble this might be spoon feeding the code to me, i can not get it undone its been lingering in my mind to post this, but i cant seem to do it because its kinda shameful, but i did it anyways. It will be a great help for my research. I just want somebody to modify the example code of the great doctormckay the offloader.js, in which it will send the items one by one and loops until the inventory is empty. Thank you in advance /** * OFFLOADER * * Once logged in, sends a trade offer containing this account's entire tradable CS:GO inventory. */ var SteamUser = require('steam-user'); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var TradeOfferManager = require('../lib/index.js'); // use require('steam-tradeoffer-manager') in production var fs = require('fs'); var client = new SteamUser(); var manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en" // We want English item descriptions }); var community = new SteamCommunity(); // Steam logon options var logOnOptions = { "accountName": "username", "password": "password", "twoFactorCode": SteamTotp.getAuthCode("sharedSecret") }; if (fs.existsSync('polldata.json')) { manager.pollData = JSON.parse(fs.readFileSync('polldata.json')); } client.logOn(logOnOptions); client.on('loggedOn', function() { console.log("Logged into Steam"); }); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); // Get our inventory manager.loadInventory(730, 2, true, function(err, inventory) { if (err) { console.log(err); return; } if (inventory.length == 0) { // Inventory empty console.log("CS:GO inventory is empty"); return; } console.log("Found " + inventory.length + " CS:GO items"); // Create and send the offer var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=xxxxxxxx"); offer.addMyItems(inventory); offer.setMessage("Here, have some items!"); offer.send(function(err, status) { if (err) { console.log(err); return; } if (status == 'pending') { // We need to confirm it console.log(`Offer #${offer.id} sent, but requires confirmation`); community.acceptConfirmationForObject("identitySecret", offer.id, function(err) { if (err) { console.log(err); } else { console.log("Offer confirmed"); } }); } else { console.log(`Offer #${offer.id} sent successfully`); } }); }); }); community.setCookies(cookies); }); manager.on('sentOfferChanged', function(offer, oldState) { console.log(`Offer #${offer.id} changed: ${TradeOfferManager.ETradeOfferState[oldState]} -> ${TradeOfferManager.ETradeOfferState[offer.state]}`); }); manager.on('pollData', function(pollData) { fs.writeFile('polldata.json', JSON.stringify(pollData), function() {}); }); /* * Example output: * * Logged into Steam * Got API key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx * Found 117 CS:GO items * Offer #1601569319 sent, but requires confirmation * Offer confirmed */
  22. When i am using offer.make offer function var offer = { partnerAccountId: 76561198361006906, accessToken: "F8Rnh10I", itemsFromThem: [{ appid: 730, contextid: 2, amount: 1, assetid: "9710052624" }], itemsFromMe: [], message: "Hello! Checkout what I'm offering You ;)"};offers.makeOffer(offer, function(err, result){ // 2. callback function that will handle result of makeOffer if (err) { console.log(err); //return; } console.log(result); }); i am getting error this._requestCommunity.get(requestParams, function(error, response, body) { ^ TypeError: Cannot read property 'get' of undefined like this how can i solve this ? any solution for this ??
  23. Hello. How many times I can cancel offer? Is any limit? Steam doesn't ban my account? Thanks
  24. My donation functions were working without issue so I'm not sure what changed. That said here is my situation: * A user submits a trade offer (i.e. donation) - the trade WILL go through however the bot will then produce the following error (Illegal buffer). * Should the request not be a donation but an actual trade offer, the bot will correctly decline with no error. * Here is the pertinent portion of my code. I've commented out the 'offer.accept' at times just to verify that the error is produced at that point, it does. Any recommendations?
  25. Currently I'm using steam-user as it allows to add node-tf2 module, but there are some methods that steamcommunity has that I'd like to integrate into my script. So currently I login with steam-user, and then try to pass the cookies to steamcommunity: client.on("webSession", function(sessionID, cookies) { community.setCookies(cookies); manager.setCookies(cookies, function(err) { if (err) { console.log("There was a WebSession error: " + err); process.exit(1); return; } else { console.log("Successfully got an API key: " + manager.apiK$ } }); community.setCookies(cookies); community.startConfirmationChecker(30000, identitySecret); //Checks and ac$ });But when I try to do operations with steamcommunity it gives me a HTTP 401 response, which means it hasn't authenticated. How do I solve this?
×
×
  • Create New...