EliteOneTUbe Posted August 19, 2017 Report Posted August 19, 2017 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. Quote
Axle Posted August 21, 2017 Report Posted August 21, 2017 (edited) 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 August 21, 2017 by Axle Quote
Recommended Posts
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.