Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter 2-2: bot doesn't react to new tradeoffers #6

Closed
0maunz0 opened this issue Dec 20, 2016 · 7 comments
Closed

chapter 2-2: bot doesn't react to new tradeoffers #6

0maunz0 opened this issue Dec 20, 2016 · 7 comments
Labels

Comments

@0maunz0
Copy link

0maunz0 commented Dec 20, 2016

I followed your guide (thank you a lot btw) and everything went smooth so far, now I'm stuck though as the bot won't react to sent tradeoffers. From what I understand the even newOffer is never registered (I could be wrong I'm pretty new to coding). The bot definitely does get the offers, I can even log into the account and accept them manually. I downloaded your code and tried with that still no luck. Any help would be appreciated!

@andrewda
Copy link
Owner

The event which is triggered when you receive an event is located here. Also - make sure your bot is actually successfully logging in and that the bot is on when it receives an offer.

@0maunz0
Copy link
Author

0maunz0 commented Dec 20, 2016

Bot is logged in, I get the message from the cmd and I can see him online. I tried a console log in front of the if statement under the manager.on but got no results either. The webSession listen seems to work as I can print the sessionid and cookies. What's the best way to make sure the manager instance is running?

@andrewda
Copy link
Owner

Hmm, interesting. I would recommend adding the following code to your app and tell me what it outputs:

manager.on('pollFailure', () => {
    console.log('poll failure');
});

manager.on('debug', (msg) => {
    console.log(`debug: ${msg}`);
});

@ghost
Copy link

ghost commented Dec 21, 2016

@andrewda This isn't part of the issue, but I can't find a way to thank you for making this great tutorial and to tell you to keep going with it! I'm looking forwards to being able to fetch and show a users inventory on the site!

@andrewda
Copy link
Owner

@DopplaCSGO sure no problem! Hope it helps and proves useful!

@ghost
Copy link

ghost commented Dec 21, 2016

@andrewda Thanks! Just be sure to bless us with it soon and not let it die! <3

@0maunz0
Copy link
Author

0maunz0 commented Dec 29, 2016

thank you for your efforts; it was an issue with the account. I tried on a different one and it worked just fine. Sorry for stealing your time.

@0maunz0 0maunz0 closed this as completed Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants