Jump to content
McKay Development

Recommended Posts

Posted

Yes I have something like that. I always decline offers sent by users.

manager.on('newOffer', function(offer) {


            console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID());


            offer.decline(function(err) {


                if (err) {
                    console.log(err);
                    return;
                }


                console.log('Offer was declined, we dont accept external offers. Only our bots can send an offer :-D');
            });
        });

So, the big question is: When the event "newOffer" is called?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...