{"id":16535928,"url":"https://github.com/offish/tf2-express","last_synced_at":"2025-03-21T09:32:15.535Z","repository":{"id":48388757,"uuid":"150952085","full_name":"offish/tf2-express","owner":"offish","description":"Automated TF2 trading bot with automatic pricing and GUI","archived":false,"fork":false,"pushed_at":"2025-03-07T10:54:02.000Z","size":1152,"stargazers_count":49,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-07T11:34:38.319Z","etag":null,"topics":["pricestf","steam-api","steam-trade","steam-trade-bot","steam-trade-offers","steam-trading","steambot","steambots","steamtrades","team-fortress-2","teamfortress2","tf2","tf2-trading-bot","tf2autobot","tradebot","tradebots-steam","tradesteambots"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/offish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-30T09:22:08.000Z","updated_at":"2024-12-23T21:41:16.000Z","dependencies_parsed_at":"2022-08-25T08:52:31.060Z","dependency_job_id":"64a5a459-31c9-4eec-9b1a-957fc9f77cc4","html_url":"https://github.com/offish/tf2-express","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offish%2Ftf2-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offish%2Ftf2-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offish%2Ftf2-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offish%2Ftf2-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offish","download_url":"https://codeload.github.com/offish/tf2-express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130282,"owners_count":20402753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pricestf","steam-api","steam-trade","steam-trade-bot","steam-trade-offers","steam-trading","steambot","steambots","steamtrades","team-fortress-2","teamfortress2","tf2","tf2-trading-bot","tf2autobot","tradebot","tradebots-steam","tradesteambots"],"created_at":"2024-10-11T18:29:16.094Z","updated_at":"2025-03-21T09:32:15.192Z","avatar_url":"https://github.com/offish.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf2-express\n[![License](https://img.shields.io/github/license/offish/tf2-express.svg)](https://github.com/offish/tf2-express/blob/master/LICENSE)\n[![Stars](https://img.shields.io/github/stars/offish/tf2-express.svg)](https://github.com/offish/tf2-express/stargazers)\n[![Issues](https://img.shields.io/github/issues/offish/tf2-express.svg)](https://github.com/offish/tf2-express/issues)\n[![Size](https://img.shields.io/github/repo-size/offish/tf2-express.svg)](https://github.com/offish/tf2-express)\n[![Discord](https://img.shields.io/discord/467040686982692865?color=7289da\u0026label=Discord\u0026logo=discord)](https://discord.gg/t8nHSvA)\n[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nAutomated \u003cabbr title=\"Team Fortress 2\"\u003eTF2\u003c/abbr\u003e trading bot with GUI support, built with Python. Prices are by default provided by [Prices.TF](https://prices.tf).\n\n## Donate\nDonations are not required, but greatly appericated.\n- BTC: `bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2`\n- [Steam Trade Offer](https://steamcommunity.com/tradeoffer/new/?partner=293059984\u0026token=0-l_idZR)\n\n\n## Features\n* GUI for adding and changing items, prices, `max_stock` + browsing trades\n* Automated item pricing by [Prices.TF](https://prices.tf)\n* Bank as many items as you want\n* Add items by either name or SKU\n* Uses MongoDB for saving items, prices and trades\n* Supports Random Craft Hats [[?]](#random-craft-hats)\n* Run multiple bots at once, each with their own database\n* Keeps track of item stock and checks if trades surpass their related item's `max_stock`\n* Fetches the bot's inventory once, and keeps track of items using receipts\n* Supports SKU item formats for ease of use\n* Supports 3rd party inventory providers [[?]](#3rd-party-inventory-providers)\n* Supports 3rd party emitted \"deals\" [[?]](#3rd-party-deals)\n* Utilizes [tf2-sku](https://github.com/offish/tf2-sku)\n* Utilizes [tf2-data](https://github.com/offish/tf2-data)\n* Utilizes [tf2-utils](https://github.com/offish/tf2-utils)\n\nAvailable options can be found [here](express/options.py).\n\n*Backpack.tf listing is not supported yet.*\n\n## Showcase\n![GUI Showcase](https://github.com/offish/tf2-express/assets/30203217/3093be18-412d-4852-a9a1-270f2e16f194)\n![tf2-express](https://github.com/offish/tf2-express/assets/30203217/c32d6c2e-b59d-4923-97e7-8ba7cf5f8640)\n\n## Installation\nFull installation guide can be found on the [wiki](https://github.com/offish/tf2-express/wiki).\n\nIf MongoDB is already installed, installation should be fairly straight forward.\n\n```bash\ngit clone git@github.com:offish/tf2-express.git\ncd tf2-express\npip install -r requirements.txt\n```\n\n## Updating\n```bash\n# tf2-express/\ngit pull\npip install --upgrade -r requirements.txt\n# update packages like tf2-utils, tf2-data and tf2-sku,\n# which the bot is dependant on\n```\n\n## Setup\nRename `config.example.json` to `config.json`. Update credentials and set your preferred `options`.\n\nExample config:\n```json\n{\n    \"name\": \"nickname\",\n    \"check_versions_on_startup\": true,\n    \"listen_to_pricer\": true,\n    \"bots\": [\n        {\n            \"name\": \"bot1\",\n            \"username\": \"username\",\n            \"password\": \"password\",\n            \"api_key\": \"111AA1111AAAA11A1A11AA1AA1AAA111\",\n            \"secrets\": {\n                \"steamid\": \"76511111111111111\",\n                \"shared_secret\": \"Aa11aA1+1aa1aAa1a=\",\n                \"identity_secret\": \"aA11aaaa/aa11a/aAAa1a1=\"\n            },\n            \"options\": {\n                \"enable_deals\": false,\n                \"inventory_provider\": \"steamcommunity or steamsupply or steamapis\",\n                \"inventory_api_key\": \"inventory api key or empty\",\n                \"fetch_prices_on_startup\": true,\n                \"accept_donations\": true,\n                \"decline_bad_offers\": false,\n                \"decline_trade_hold\": true,\n                \"decline_scam_offers\": true,\n                \"allow_craft_hats\": false,\n                \"save_trades\": true,\n                \"save_receipt\": true,\n                \"poll_interval\": 30,\n                \"database\": \"mydatabasename\",\n                \"owners\": [\n                    \"76511111111111111\",\n                    \"76522222222222222\"\n                ]\n            }\n        },\n        {\n            \"name\": \"bot2\",\n            \"username\": \"username2\",\n            \"password\": \"password2\",\n            \"api_key\": \"111AA1111AAAA11A1A11AA1AA1AAA111\",\n            \"secrets\": {\n                \"steamid\": \"76511111111111111\",\n                \"shared_secret\": \"Aa11aA1+1aa1aAa1a=\",\n                \"identity_secret\": \"aA11aaaa/aa11a/aAAa1a1=\"\n            },\n            \"options\": {\n                \"accept_donations\": true,\n                \"allow_craft_hats\": true,\n                \"save_trades\": true,\n                \"poll_interval\": 60,\n                \"database\": \"bot2database\"\n            }\n        }\n    ]\n}\n```\n\nFor more information follow the [wiki](https://github.com/offish/tf2-express/wiki).\n\n## Running\n```bash\n# tf2-express/\npython main.py # start the bot\npython panel.py # start the gui\n```\n\nAfter starting the GUI, you can open http://127.0.0.1:5000/ in your browser. \n\nLogs will be available under `logs/express.log`. \nLevel is set to DEBUG, so here you will be able to see every request etc. and more information than is shown in the terminal.\n\n*Do NOT share this log file with anyone else before removing sensitive information. This will leak your `API_KEY` and more.*\n\n\n## Explanation\n### Random Craft Hats\nIf a craftable hat does not have a specific price in the database, it will be viewed as a Random Craft Hat (SKU: -100;6), if `enable_craft_hats` is enabled. \n\n**WARNING:** *This applies to any hat. Such as Ellis' Cap, Team Captain, Earbuds, Max Heads etc. This is a feature, not a bug.*\n\nSimply open the GUI and add \"Random Craft Hat\" to the pricelist. Set the buy and sell price to whatever you want. This item cannot get automatic price updates.\n\n### 3rd Party Inventory Providers\nAvoid Steam's inventory rate-limits by using a third party provider like SteamApis, Steam.Supply or your own.\n\n\n### 3rd Party Deals\n\"Deals\" in this context are data which is emitted by third party using a TCP socket. This data will be acted on, such as sending an offer using the included trade URL and price. They are named \"deals\" as I've been using it for arbitrage purposes.\n\n\n## Testing\n```bash\n# tf2-express/\npython -m unittest\n```\n\nAll of the tests should output OK, except for the version check. They should be equal.\n\n## License\nMIT License\n\nCopyright (c) 2020-2024 offish ([confern](https://steamcommunity.com/id/confern))\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffish%2Ftf2-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffish%2Ftf2-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffish%2Ftf2-express/lists"}