Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.34k stars 910 forks source link

Bot.SteamFriends.RequestTrade? #119

Closed tkphoto closed 11 years ago

tkphoto commented 11 years ago

Looking through through the bot.steamfriends and bot.trade options i cant seem to locate any commands for issueing a trade request... does anyone know an option for making the bot iniate a trade request.

Thanks

cwhelchel commented 11 years ago

See #116. It makes Bot.OpenTrade work as described in it's comments.

tkphoto commented 11 years ago

Bot.OpenTrade(steamid); crashes.. Do i need to find some updated files?

coffman34 commented 11 years ago

If you apply the changes in #116 then it should fix the issue. If you are unaware how to get the changes, you can just open each file that has changed, copy the code, and paste it over the code in the files you have locally.

tkphoto commented 11 years ago

Using the updated files does indeed fix the issue and trades do get iniated.

I understand with Bot.OpenTrade() it needs a steamid number to trade a specific person.. Is there a way of making this use a steamid name instead.

coffman34 commented 11 years ago

What are you attempting to accomplish? It's always better to use SteamID instead of a name.

tkphoto commented 11 years ago

Im trying to make a bot iniate a trade with someones username via a chat message.. but i dont want to have to look up converted id names via websites etc.. So basically i send a message to the bot saying !trade username and it will then iniate a trade to that person

teliosdev commented 11 years ago

This is no longer a problem with the bot.

coffman34 commented 11 years ago

You can't add a friend via username without first selecting the proper friend, which actually is there to convert their username into the steamid. Therefore, what your proposing, wouldn't really be the correct way to go about things.

You wouldn't happen to be working on a middleman bot are you? If so, there are other ways for this to work.

tkphoto commented 11 years ago

coffman, you got it in one.. middleman bot:)

coffman34 commented 11 years ago

Add me on Steam: Coffman34