Coder Social home page Coder Social logo

cloudpane01 / tf2-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from offish/tf2-express

0.0 0.0 0.0 498 KB

Automated trading bot for Team Fortress 2 with prices from Prices.tf.

License: MIT License

Python 81.55% HTML 18.01% Batchfile 0.44%

tf2-express's Introduction

tf2-express

License Stars Issues Size Discord Code style

Donate Steam Donate PayPal

Automated trading bot for Team Fortress 2 using prices provided by Prices.TF.

Features

  • Automatic pricing from Prices.TF
  • Basic website GUI (going to be updated)
  • Uses MongoDB for saving/getting prices and trades
  • Support for running multiple bots at once
  • Accepts offer(s) sent by owner
  • Supports both Non-Craftable and Craftable items
  • Supports Random Craft Hats
  • Supports options listed in settings.py
  • Saves trade data after trade has gone through
  • Colored and readable logging
  • Bank as many items as you want

Backpack.tf listing might be added in the future.

Screenshots

GUI Screenshot

Installation

Download the repository, navigate to the folder, and install the required packages.

pip install -r requirements.txt 

Setup

Configure the bots variable inside the config.py file. Here you need to add your bots credentials.

{
    "name": "Bot 1",
    "username": "steam-username",
    "password": "steam-password",
    "api_key": "api-key",
    "secrets": {
        "steamid": "steam-id-64",
        "shared_secret": "sharedsecret=",
        "identity_secret": "identitysecret="
    }
},
{
    "name": "Bot 2",
    "username": "steam-username",
    "password": "steam-password",
    "api_key": "api-key",
    "secrets": {
        "steamid": "steam-id-64",
        "shared_secret": "sharedsecret=",
        "identity_secret": "identitysecret="
    }
}

If you're running multiple bots, the variable should look something like this. Name is only for logging, this could be whatever you want (username, index, symbol, etc).

You can also change your settings inside the settings.py file. Every option/setting here should be pretty self explanatory.

accept_donations    = True
decline_trade_hold  = True
decline_scam_offers = True
allow_craft_hats    = True
save_trades         = True

Running

After you have configured the bot you can run this command. Make sure you're in the correct directory.

python main.py

To open the GUI run this command while being in the same directory as the main.py file, and open http://127.0.0.1:5000 in your browser.

python -m express.ui.panel

License

MIT License

Copyright (c) 2020 offish

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.