Jump to content
McKay Development

How can I make the bot to send an offer to the user


EliteOneTUbe

Recommended Posts

 

I have this code : https://gist.github.com/EliteOneTube/6a8d1c27d1b137c9843b3779b1c1dafe and i would like to ask if it is possible to make it so when someone sends me a message like !au1 my bot sends them an offer with the specific item.
 
My bot can accept offers that matches it's prices but I would want my bot to send the offers.

 

https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#createofferpartner-token 

 

manager.createOffer(partner, token) is what you are looking for.

 

Edit: Also looking at your code there is no reason to add that many listeners. You can just cascade else ifs in a single listner and it will probably be much faster.

Edited by Axle
Link to comment
Share on other sites

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...