Jump to content
McKay Development

Recommended Posts

Posted (edited)
Here is my current Code

 


 

So far everything works, however I'm wondering, how do I check if a trade has been acceppted? I want to make it so I can do something like 

 

php code:

'socket.emit("getTrade", tradeid)'

nodejs code:

'socket.on('getTrade', function(steamid, tradeid) {'

GET TRADE STATUS HERE

'}'

 

But i also want it so the bot automatically polls and checks the trade status so if the trade gets acceppted/declined the node js bot will do something

(I want it so this doesn't require me to send getTrade to the bot and it just automatically checks if the bot acceppts so the bot can update sql records without having to keep clicking 'check trade') so how shall I get the bot to automatically check if a trade has been acceppted after sending?

 

I've had a look at the documentation and I still couldn't seem to get it, so help would be appreciated :D

Edited by AbrarK

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