Baterka Posted March 11, 2018 Report Posted March 11, 2018 I have small dilema on my new bot what I am making.I have this communication between jackpot server and bot by REST API: Steam new incoming offer -> bot -> resend to jackpot server for validation -> jackpot server answers accept/decline -> if accept bot send to jackpot accepted offer object -> jackpot server do his work "if accept bot send to jackpot accepted offer object" - Here I have dilema.. Wait for accept callback, or use receivedOfferChanged event to get callback? I know waiting for callback is littlebit faster but is it 100% correct? Will it catch always? Same question for receivedOfferChanged. Thanks for help or suggestion how you guys (or Meredith McKey xD) do this kind of bot. Quote
Dr. McKay Posted March 11, 2018 Report Posted March 11, 2018 Use both. If the callback returns success then send success immediately. If it returns error 16 (timeout) then wait for receivedOfferChanged. Quote
Baterka Posted March 12, 2018 Author Report Posted March 12, 2018 The accept function trying to confirm until success? Or if I get 16 I need to try again? 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.