rannmann / node-steam-user-trade-tutorial Goto Github PK
View Code? Open in Web Editor NEWThe example from a blog post explaining how to create a Steam trade bot in Node.js/IO.js using the Steam-User library.
License: MIT License
The example from a blog post explaining how to create a Steam trade bot in Node.js/IO.js using the Steam-User library.
License: MIT License
Hey. I'm assuming this is an issue on my end and not with the code, but I'm really at a loss here.
I've tried writing my own code, as well as just copying the code directly from here. I've installed all the libraries through npm, as well as the dependencies from the 0.6.8 guide you created (python 2.7, openSSL, windows 7 64bit sdk, and the full version of visual studio). Followed each guide to a T, and on both versions it just ends when trying to login. No errors or anything, just closes out.
Can't for the life of me figure out what's going wrong. Hoping I might be able to find an answer here.
Thanks!
// Steam is down or the API is having issues
offers.on('pollFailure', function (err) {
log.error("Error polling for trade offers: "+err);
});
should be
// Steam is down or the API is having issues
offers.on('pollFailure', function (err) {
logger.info("Error polling for trade offers: "+err);
});
right?
With the new forced steam guard authentication how do we solve that problem in javascript i see the the C# bot as already resolved the problem and i would like to know if there is a way to fiz it in javascript as well.
Everytime I run the script, I get an error as seen below
client.friends.on('relationships', function(){
^
TypeError: Cannot read property 'on' of undefined
at Object. (/Users/ford/main.js:142:15)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:1003:3
When i request a trade via the chat i get this error
Any help ?
error: Error: Malformed response
at TradeOfferManager. (/Users/TRM/Desktop/node-steam-user-trade-tutorial-master/node_modules/steam-tradeoffer-manager/lib/index.js:122:13)
at Request.self.callback (/Users/TRM/Desktop/node-steam-user-trade-tutorial-master/node_modules/request/request.js:199:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request. (/Users/TRM/Desktop/node-steam-user-trade-tutorial-master/node_modules/request/request.js:1036:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage. (/Users/TRM/Desktop/node-steam-user-trade-tutorial-master/node_modules/request/request.js:963:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
if (offer.partner.getSteamID64() === config.admin || offer.itemsToGive.length === 0)
should just check the equality
if (offer.partner.getSteamID64() == config.admin || offer.itemsToGive.length === 0)
tested it and seems like its working now as intended.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.