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 tried loading the inventory of my bot, and the Econitem objects doesn't have the owner_descriptions array, has it been recently changed? Thank You
  2. Hello. Maybe someone has encountered such a problem.Here is my code: const SteamCommunity = require('steamcommunity') const SteamTotp = require('steam-totp') const request = require('request') var myProxy = request.defaults({'proxy': 'http://104.***.***.*3:3128' }); const client = new SteamCommunity({ "localAddress": myProxy, "request": myProxy, }); client.login( loginOptions, function(err, sessionID, cookies, steamguard) { if (err) console.log('ERROR', err) }); How can i solve this?
  3. manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteamID64()); if (offer.partner.getSteamID64() === config.ownerID) { offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer client.chatMessage(offer.partner.getSteamID64(), "Thanks for trade with me"); console.log("Offer accepted"); } }) } else { offer.decline(function(err) { if (err) { console.log("Unable to decline offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after declineing the offer client.chatMessage(offer.partner.getSteamID64(), "Sorry, I'm not ready to trade with you yet"); console.log("Offer decline"); } }) } }); when i gave my bot one skin,it's can accept. when i take this skin back it's can't work. it just don't confirmations the offer,but told me Thanks for trade with me,and i can see Offer accepted on console. same code can work before yestarday,but it can't work now
  4. Heyo, I've been looking to load someones inventory, I'd like to get the contents and send them over to the server, would the following way be a good way to load someones inventory? Would I be needing to cache their inventories? var request = require('request'); request('https://steamcommunity.com/inventory/x/578080/2', function(error, response, body) { if(error){ console.log(error); return; } var inventory = JSON.parse(body); inventory.descriptions.forEach(function(data){ console.log(data.market_name); }); });Also, would I not just be able to load someones inventory using manager.getUserInventoryContents to load their inventories without having to cache anything?
  5. var Steam = require('steam'); var SteamUser = require('steam-user'); var TradeOfferManager = require('steam-tradeoffer-manager'); var SteamTotp = require('steam-totp'); var Steamcommunity = require('steamcommunity'); var SteamWebLogOn = require('steam-weblogon'); var fs = require('fs') var util = require('util'); var UInt64 = require('cuint').UINT64; var client = new SteamUser(); var steamClient = new Steam.SteamClient(); var steamUser = new Steam.SteamUser(steamClient); var steamFriends = new Steam.SteamFriends(steamClient); var steamWebLogOn = new SteamWebLogOn(steamClient, steamUser); var community = new Steamcommunity(); var manager = new TradeOfferManager({ "steam": client, "domain": "steamcommunity/id/KatayDesign", "language": "en" }); var config = require('./config'); var code = SteamTotp.generateAuthCode(config.bot.shared_secret); var logOnOptions = { account_name: config.bot.username, password: config.bot.password, two_factor_code: code } function log(message) { console.log(new Date().toString() + ' - ' + message); } function steamIdObjectToSteamId64(steamIdObject) { return new UInt64(steamIdObject.accountid, (steamIdObject.universe << 24) | (steamIdObject.type << 20) | (steamIdObject.instance)).toString(); } function Login(logOnOptions) { steamClient.connect(); steamClient.on('connected', function() { console.log('Connected...'); steamUser.logOn(logOnOptions); }); i got an error after "" console.log('Connected...'); "" its working with shared_secret but giving error without shared_secret
  6. After a somewhat long hiatus from programming bots I decided to come back to it and found that SteamCommunity no longer has a "newConfirmation" event. Can somebody please give an example of how catching and dealing with confirmations is done now? Thanks
  7. Hi, I want to get item trade lock date, to show to my users how many days that item has trade-lock. Any suggestions?
  8. Hello am trying to reduce the memory footprint of my bot. it's hitting 4-6gb at times quite high. Most of it happens on inventory loading so my idea was if there was a way to load the inventory page by page and store the data in files rather than server memory is there anything in this that can load an inventory page by page?
  9. Is it possible to parse the steamguard auth code in a variable?
  10. community.httpRequestPost({ "uri": "https://steamcommunity.com/profiles/" + client.steamID.getSteamID64() + "/ajaxsetshowcaseconfig", "form": { "appid": 730, "item_contextid": 2, "item_assetid": 11692952310, "customization_type": 4, "slot": 0, "sessionid": sessionID }, "json": true }, (err, response, body) => { console.log("err:", err); console.log("body:", body); }, "steamcommunity"); I'm trying to play a little with the profile showcases, the idea is to make a change in the item that are showed in a desired slot, but for some reason it doesn't work, all the data passed in the POST are definetely right, you guys have an idea on how to make it work?
  11. Hello this is my code client.logOn({ accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret) }); and im %100 sure that my sharetSecret is right. I can login using this piece of code in my windows computer but in my ubuntu vds i cant login i checkt the time offsets they are diffrent from each other. 1 week ago i would login in my vds but now i cant. Any ideas ?
  12. Please help with my problem. I do not know why the 'appid' is not defined Stack trace: Logged into Steam /Users/user/Documents/node/steam/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:419 if (typeof details.appid === 'undefined' || typeof details.contextid === 'undefined' || (typeof details.assetid === 'undefined' && typeof details.id === 'undefined')) { ^ TypeError: Cannot read property 'appid' of undefined at addItem (/Users/user/Documents/node/steam/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:419:20) at TradeOffer.addTheirItem (/Users/user/Documents/node/steam/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:374:9) at manager.loadUserInventory (/Users/user/Documents/node/steam/project4.js:80:12) at SteamCommunity.<anonymous> (/Users/user/Documents/node/steam/node_modules/steamcommunity/components/users.js:331:5) at Request._callback (/Users/user/Documents/node/steam/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/Users/user/Documents/node/steam/node_modules/request/request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/Users/user/Documents/node/steam/node_modules/request/request.js:1171:10) at emitOne (events.js:96:13) Code: function sendRandomItem() { const partner = 'partner_code'; const appid = 730; const contextid = 2; const offer = manager.createOffer(partner); manager.loadInventory(appid, contextid, true, (err, myInv) => { if (err) { console.log(err); } else { const myItem = myInv[Math.floor(Math.random() * myInv.length - 1)]; offer.addMyItem(myItem); manager.loadUserInventory(partner, appid, contextid, true, (err, theirInv) => { if (err) { console.log(err); } else { const theirItem = theirInv[Math.floor(Math.random() * theirInv.length - 1)]; offer.addTheirItem(theirItem); offer.setMessage(`Will you trade your ${theirItem.name} for my ${myItem.name}?`); offer.send((err, status) => { if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); } }); } }); } }); }
  13. Hello guys, i become this error when im trying to run my node.js script via webserver. Specs: Windows Machine running Cygwin with phpfpm path.js:7 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^ TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.join (path.js:468:7) at userData (C:\Users\Administrator\node_modules\appdirectory\lib\appdirectory.js:16:25) at Object._setTemplates (C:\Users\Administrator\node_modules\appdirectory\lib\appdirectory.js:134:34) at Object.AppDirectory (C:\Users\Administrator\node_modules\appdirectory\lib\appdirectory.js:129:10) at new SteamUser (C:\Users\Administrator\node_modules\steam-user\index.js:104:34) at Object.<anonymous> (C:\Users\Administrator\Desktop\nodestuff\myscript.js:4:12) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) If this isnt enough information please let me know
  14. Hello everyone. I want to check people levels in my friend list. How can i do this?
  15. Here is the actual code and here is the trigger. The idea is that the bot will send the item I selected, but it deosn't. and the worst part is that it doesnt log any errors, can you help me understand my mistake, if I did any? Manager version is 2.9.3
  16. Is there anyway to open a booster using this script? and if not any idea how i would go about doing that ?
  17. After the last steam update items after csgo successfull trade become unavailable to trade during 7 days period. If there is any opportunity to get field "owner_descriptions" from my inventory to know when the item is gonna be tradable(data time)?
  18. I want to get the other language of these items' market_hash_name I have tried to set TradeOfferManager's language property, but it doesnt work. So can you give one way to make it.. I think need to set manager.createOffer("xxxxx&language=schinese") like this? Very appreciate.
  19. Hello. I was playing around with node-steam-user changePassword method, but it looks like it's not working. I tried: user.changePassword(oldpassword, mynewpassword, steamtotp.generateAuthCode(shared_secret), (err) => { if (err) return console.log(err); debug.log(`Password has been successfully changed!`); }); and it returned InvalidParam error object.
  20. Greetings, while working on my bot's setting module, I ran into an issue. When calling `editProfile` or `profileSettings` callback with error is returned saying. "Error: options.uri is a required argument" But earlier this week it was working just fine. This is how I'm calling it, if that's any of help. // When calling this function, "profile" object is being passed. let self = this; this.name = profile.name; this.description = profile.description; this.picture = profile.picture; this.community.editProfile({ name: self.name, summary: self.description }, (err) => { if(err){ return callback("Unable to update profile information."); } }); this.community.profileSettings({ profile: 3, comments: 3, inventory: 3, inventoryGifts: false }, (err) => { if(err){ return callback("Unable to update profile settings."); } });
  21. Hello, I'd been trying to get the acceptConfirmationForObject working with below code community.acceptConfirmationForObject(checker, extraObj["trade_id"], function (err) { if (err) { console.log('called transferItem here 7.01 acceptConfirmationForObject got error \n'+util.inspect(err, false, null)); } else { console.log('called transferItem here 7.02 acceptConfirmationForObject succesfull '); } }); But it keeps giving me this 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. The steam-community version I've is 0.2.2 and when I check for latest available with this command npm view steam-community versions the highest it gives is 0.2.2 while the least version that's needed is 3.27.0 as written in doc https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#acceptconfirmationforobjectidentitysecret-objectid-callback Not sure even though I've very low version than why is even community object giving me that function and why in version list it shows the available version up to 0.2.2? Do I've to upgrade all other modules to get the latest version? In between rest of the things with trade are working fine and even the shared secret is working for auto login without asking for steam guard code and the time in steam guard device and my server is same so please help me figure out what is the issue. Thanks
  22. hello, is it possible to get summary in trade how much backgrounds and emoticons are worth in amount of gems? something like this: if you receiving trade offer with steam backgrounds & emotes & trading cards to see how much these items are worth in gems?
  23. Hi, i want that bot make posts on my SteamGroup i have this code: var id = "OctaFox"; var headline = "Some fancy headline"; var content = "Just wanted to say Hello!"; community.getSteamGroup(id, (err, group) => { if(err) { throw err; } else { group.postAnnouncement(headline, content, (err) => { if(err) { throw err; }; }); }; }); The Bot is Admin, but on the SteamGroup i don`t see any post, and in console i don't have errors. Bot full sorce code --> https://github.com/xedom/xeSteamBot/blob/master/index.js Someone can help me? Thanks
  24. The postGroupAnnouncement doesn't trigger sessionExpired if the session is expired because the err object never displays the "Not Logged In" error. Because of the this issue mentioned above you can't post announcements or log back in from the postGroupAnnoucement. Is there a way around this issue? My code. community.postGroupAnnouncement(config.steam_group_id, title, body, function(err) { console.log(err); // Displays null if the session is expired. if(err != null) { if(err.toString().indexOf("Not Logged In") > -1) // Never is triggered. { console.log("Saved Announcement"); announcements.push({title: title, body: body}); } else { console.log(err); response.status(500).send("An error has occured, check your console."); } } else { console.log("Posted Announcement Successfully!"); response.status(200).send("Posted Announcement Successfully!"); } });
  25. I need help with Help with getServerList(). https://github.com/DoctorMcKay/node-steam-user#getserverlistfilter-limit-callback Someone can help me, with a exemples? Thanks?
×
×
  • Create New...