Jump to content


Photo
Discussion

Lottery Bot (1:1 Random Items Exchange)

node.js node-steam-tradeoffer-manager

  • Please log in to reply
3 replies to this topic

#1 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 27 December 2018 - 03:17 PM

Hi.

 

I was thinking about creating a random, 1:1 trade bot; meaning that anyone can send an item to the bot and then the bot sends back another item of the same inventory type (e.g. a TF2 weapon for another TF2 weapon).

 

First problem I see is that I should somehow differentiate between donations (my bot is currently set up to accept donations only) and a "lottery" type of trade (people sending an item but expecting something back). I thought maybe they could attach a message like "lottery" to their trade offer and the bot would know it's not a donation, so initiating an outgoing offer soon after, but I only found a "setMessage(message)" method, can't see any "getMessage".

 

Is this achievable somehow? Anyone (with experience) can shed some light about the best course of actions?

 

Thanks



#2 manic

manic

    Newbie

  • Member
  • Pip
  • 8 posts

Posted 27 December 2018 - 03:37 PM

https://github.com/D...ffer#properties

 

there's a message property


Edited by manic, 27 December 2018 - 03:38 PM.


#3 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 27 December 2018 - 03:40 PM

Oh, that's nice. A good starting point for sure, thanks!



#4 roughnecks

roughnecks

    Advanced Member

  • Member
  • PipPipPip
  • 58 posts

Posted 20 February 2019 - 09:15 AM

Bot's up and running, if anyone's interested: http://steamcommunit...id/meltdownzed/







Also tagged with one or more of these keywords: Discussion, node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users