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?