Git Product home page Git Product logo

Comments (29)

andrewda avatar andrewda commented on August 31, 2024

Please share the full stacktrace of the error.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

error

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

You're missing a comma at the end of line 33. Are you running this code from one of the chapters? There might be a typo somewhere.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Can I give you a screenshot of my code? I will blur out personal information obviously.

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Sure

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

code

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Are you absolutely certain that this is the code you're running? You blurred out the path at the top of your Sublime window, but is the file you're editing located at C:\Users\mikea\Desktop\CustomBot\bot.js? If so, here's what I would do to try and fix the problem:

  1. Maybe that "comma" at the end of line 33 is not really a comma. Try deleting it and adding a new comma.
  2. If 1 doesn't work, try copy and pasting your code into a new file and running it from there. See if the issue persists in the new file.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

newerrorful
I did everything you said but now a new error showed up...

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

I'm guessing you don't have const SteamCommunity = require('steamcommunity') at the top of your file.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Sorry if I keep bugging you but after I successfully got my bot logged into steam and playing TF2, I sent the bot a trade offer after I added the cookie code and the steam ID code but I won't accept the trade offer... I sent a screenshot with my coding before and there shouldn't be an error with the accepting part.

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Does the bot print anything in console?

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Nope

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

You should add a console.log right before line 20 in order to see when a new trade offer comes in. Make sure that the Steam ID that the trade offer is coming from is correct. Something like this:

manager.on('newOffer', (offer) => {
    console.log(`Got new offer with partner ${offer.partner.getSteamID64()}`);
    // ... rest of your code ...
});

Then send a new trade offer while the bot is running and see if it works.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

So I put in the code like so, then I restarted the bot sent a trade offer and nothing...trade

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Hmm strange... Sounds like you're not being logged in fully. Is your bot account premium?

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Premium on tf2?
If you were asking that the answer is no
And it's a limited account on steam

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

I used the word premium, but meant if the account has a game/item purchased worth $5 or more. I believe that's still a requirement in order to accept trade offers, but it's been a while since I've setup new Steam bot accounts.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Well I just looked at the steam website and it didn't say anything about trading with a limited account, it just says steam trading cards.
https://support.steampowered.com/kb_article.php?ref=3330-IAGK-7663

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

If you go onto your bot's account, can you manually accept the trade offer? If not, that's probably the issue.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

I tried it and yes I could manually accept the offer...

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Interesting alright, I'll look into it more tonight if I can.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Alright thanks

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Any updates on the issue?

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Sorry for the late response. I can't seem to duplicate this issue. The code is working fine on my bot account.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Hmm... Should I send you a screenshot of my code again? Maybe you can compare the code and figure out the problem.

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Could you make a GitHub Gist with your entire code (http://gist.github.com), obviously removing your credentials and secrets, and post it here so I can make sure everything's correct?

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

https://gist.github.com/Hello661/ea2da04808a403fdb989797fa5476ccf

from node-steam-guide.

andrewda avatar andrewda commented on August 31, 2024

Besides the typo on line 46 of your gist (it should be client.gamesPlayed(440)) your code is working fine for me.

from node-steam-guide.

Hello661 avatar Hello661 commented on August 31, 2024

Okay ill try to send another offer

from node-steam-guide.

Related Issues (20)

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.