View on GitHub

tf2-trade-bot

This is a steam trade bot that trades TF2 items, automatically! Easy to setup, for non-developers!

:exclamation: USE AT YOUR OWN RISK :exclamation:

There are many known bugs that will never be fixed.

If you can get the bot to work, congratulations. If you can’t, too bad. If it stops working in the future, too bad. This code is no longer under development.

the TF2 trade bot!

Originally created by Zwork101

This is a steam trade bot that trades TF2 items, automatically! Easy to setup, for non-developers!

Installation

If you have “git” installed, you can just type

git clone https://github.com/Zwork101/tf2_trade_bot.git

otherwise, just download the zip. Make sure you keep every file in the same folder

Setup

You will need the language python3.6 or greater. If you don’t have python installed, you can find the download here. Each file has a description in this repo, to find out what you should do. You can ignore bot.py however, that doesn’t need changing :P If you need a more in-depth setup guide, click here.

Running

If you are here, you have added your ID and secrets to steamguard.json, password, username and api keys to settings.json, and filled out trade.data with whatever you wanted to sell or buy. You can now run bot.py! You will have to install some packages, but the bot will handle that part for you! Just restart the program when it tells you to. If you’re having truoble with somthing or if you come across an error, make an issue in this repo and I’ll respond asap!

Credits

This bot was made completely by me, Zwork101. It is under the MIT license. I am not responsible for any loss you might receive whilst using this program. If you enjoyed this bot, steam item donations are accepted!

With love, Zwork101

to-do list

# In-depth setup You’ll need python 3.6 to use this bot, download it here. When editing .json files, make sure to leave quotes in if they’re there. Removing them will make everything crash and burn, possibly causing a threat to your life.

  1. If you have git installed, use git clone https://github.com/Zwork101/tf2_trade_bot.git to download the bot in the folder you’re in. Otherwise, download the zip file and extract it into a folder.
  2. If you already have your shared secret and identity secret, go to step 3. Otherwise, go here and follow the instructions. When it asks you for an encrytption key, make sure to leave it blank. Then, go to the file you installed it in and open the “maFiles” folder. Open the file with numbers in its name in a text editor. Find your shared_secret and identity_secret (eg “shared_secret”:”bla” - your shared secret is bla). You can always do CTRL+F to search to file if you don’t want to scroll along.
  3. Open “steamguard.json” in a text editor. Where it says “steam64 id” (next to “steamid”) paste in the 64-bit steam id of the account. If you can’t find this, go here, paste in the profile URL of the account and copy the steamID64. Where it says “steam shared secret” paste your shared secret. Where it says “steam identity secret” paste your identity secret. Save the file and close it.
  4. Open “settings.json” in a text editor. Where it says “steamAPI key” paste your steam API key (if you don’t have one go here - it doesn’t matter what you put as the domain). To the right of “username” paste your username (the one you use when signing in) where it says “username here”, and where to the right of “password” paste your password. Next, paste your backpack.tf API key where it says “backpack.tf key”. If you don’t have one, get one here (again, the site URL doesn’t matter. In the comments you should say it’s for a trading bot). To the right of “accept_escrow” put a 1 if you want trades that would incur an escrow period to be accepted, and a 0 if you don’t. To the left of “decline_trades”, put a 0 if you want incorrect trades to be ignored, and a 1 if you want them to be declined. To the left of “confirm_options”, put “trades” if you want only trades accepted by the bot to be confirmed and “all” if you want all trades to be confirmed. Please note - it is more secure to only confirm trades the bot has made. If you confirm all trades anyone who could access your account could take items from you (for example if you’re on a shared computer where you stay signed in). Save this file and close it.
  5. Open “whitelist.data” in a text editor. Delete everything in there, and put 64-bit steam ids in there separated by a comma. Trades from these people will be accepted no matter what the contents are. Save this file and close it.
  6. Open “trade.csv” in a text editor. Delete the last two lines. In here, you can put the details of all the items you want to buy and sell. Each line is a new item to be bought or sold. First, write down the name of the item (if it has a comma in it’s name, use Paper Paper$$ Scissors, 2.2.23.1.0, sell`. Do this for every item. When you’re done, make sure to save the file and close it.
  7. That’s it! Feel free to run the bot by double-clicking “bot.py”. The bot should guide you through the installation of some packages, but this is a one time process so won’t happen every time you want to run the bot.

Happy profit-making!