Comments (29)
Please share the full stacktrace of the error.
from node-steam-guide.
from node-steam-guide.
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.
Can I give you a screenshot of my code? I will blur out personal information obviously.
from node-steam-guide.
Sure
from node-steam-guide.
from node-steam-guide.
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:
- Maybe that "comma" at the end of line 33 is not really a comma. Try deleting it and adding a new comma.
- 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.
I did everything you said but now a new error showed up...
from node-steam-guide.
I'm guessing you don't have const SteamCommunity = require('steamcommunity')
at the top of your file.
from node-steam-guide.
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.
Does the bot print anything in console?
from node-steam-guide.
Nope
from node-steam-guide.
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.
So I put in the code like so, then I restarted the bot sent a trade offer and nothing...
from node-steam-guide.
Hmm strange... Sounds like you're not being logged in fully. Is your bot account premium?
from node-steam-guide.
Premium on tf2?
If you were asking that the answer is no
And it's a limited account on steam
from node-steam-guide.
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.
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.
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.
I tried it and yes I could manually accept the offer...
from node-steam-guide.
Interesting alright, I'll look into it more tonight if I can.
from node-steam-guide.
Alright thanks
from node-steam-guide.
Any updates on the issue?
from node-steam-guide.
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.
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.
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.
https://gist.github.com/Hello661/ea2da04808a403fdb989797fa5476ccf
from node-steam-guide.
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.
Okay ill try to send another offer
from node-steam-guide.
Related Issues (20)
- Guide refresh HOT 7
- Publish website along with guide HOT 1
- NPM modules are broken and have wrong code HOT 9
- Im having trouble getting the bot to accept trade request from my main account HOT 5
- New to coding need some help if possible. HOT 1
- Issue with express-handlebars (Error: ENOENT: no such file or directory, open '..\views\layouts\main.handlebars') HOT 1
- Steam-Rep-Bot problem, can't run it fully. HOT 1
- How to check if offer state dynamically?
- Steam totp isn't working
- running the project
- Callback is not a function problem HOT 1
- Fetching Steam Shared Secret when using email confirmation HOT 1
- How to post comment? HOT 1
- Read unread messages prior to bot initialization HOT 1
- ReferenceError: Steam is not defined HOT 1
- SyntaxError: Unexpected token 'else' HOT 2
- EPersona Problem HOT 11
- Error: socket hang up HOT 3
- Issue with node project.js HOT 2
- Making steam bot stock management HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-steam-guide.