Skip to content

Node.js program that handle incomming trade offers from Steam plataform.

License

Notifications You must be signed in to change notification settings

Atosito/Steam-Trade-Bot-TF2-

Repository files navigation

Support me - buy me a coffee :D

https://www.buymeacoffee.com/StaiYxfML

Steam Trade Bot with Node.js

Node.js program that handle incomming trade offers from Steam plataform.

Getting Started

This is an open-source project that tries to give you one example of a Steam-Trading-Bot(TF2). It's a nice goal to getting started with programming-world.

Prerequisites

  • Node.js
  • npm
  • JS Editor Program (Ex: Atom)

Essentials

Set Up Bot

  • Edit config.js file.
  • Edit Database.json

    Model

     "Item name as it appears in inventory": {
     
     "buy":{keys:0,metal:0},
     
     "sell":{keys:0,metal:0},
     
     "max_stock":1}
    

Node.js Modules

  • steam-user | It lets you interface with Steam without running an actual Steam client.
  • steam-totp | This lightweight module generates Steam-style 5-digit alphanumeric two-factor authentication codes given a shared secret.
  • steamcommunity | Easy interface for the Steam Community website. This module can be used to simply login to steamcommunity.com for use with other libraries, or to interact with steamcommunity.com.
  • steam-tradeoffer-manager | This module is designed to be a completely self-contained manager for Steam trade offers.
  • tf2 | This module provides a very flexible interface for interacting with the Team Fortress 2 Game Coordinator. It's designed to work with a node-steam SteamUser or node-steam-user SteamUser instance.
  • and more..

What it really does? - Step by Step -

  1. Pending about: Steam Community notifications: Friend requests, new trade offers, any change in trade offer state.
  2. Login into Steam and set TF2 as game played.
  3. Load TF2's BP and organize it by type.
    • new offer -
  4. Parse new offer add offer to be parsed to a queue. (This prevents handle multiple offers at same time)
  5. Identify offer declare it into an offerState:
    • 'aceptable' : Offer will be accepted. It's a donation or it's from admin.
    • 'deneganle' : Offer wil be declined. It's glitched, has trade hold or its an scam.
    • 'valida' : Offer will be processed and getting value of itemsToGive and itemsToReceive.
  6. If offerState = 'valida | identify items.
  7. Checking one by one if item is in our DBPrices or it is a currencie.
  8. Sum values of items and determine if offer will be declined or accepted.
  9. Confirm our action.
  10. Update Inventory.

About errors.

I Tomas deny have any responsability for non-wanted impact of using this type of softwares and bring knowledge that the entire code could have any type of errors.

Need Help?

Communities that could be helpful:

-Reddit SteamBot

-Doctor McKay forum

-My Steam Profile | I am glad to help you setting up your bot. Add me

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Hire me.

I am able to develope you a customize bot for PayPal money or Steam Items.

Possibles features of paid BOT.

  • Prepare offer via commands. Example !buy The Anger 1 ✔️
  • Automatic list items on backpack.tf ✔️
  • Usefull commands. ✔️

Contact me.

-My Steam Profile

-gonzaltomas@gmail.com

About

Node.js program that handle incomming trade offers from Steam plataform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published