Giter Club home page Giter Club logo

node-steam-user-trade-tutorial's People

Contributors

rannmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-steam-user-trade-tutorial's Issues

Closes at login attempt

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!

log.error should be logger.info?

// 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?

Steam Guard Autenticator

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.

.on issue

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

error: Error: Malformed response

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)

admin doesn't work with ===

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.