Skip to content

Fully automatic Backpack.tf & Scrap.tf trading bot written in TypeScript.

Notifications You must be signed in to change notification settings

tomaszjagielka/ScrapyNode

Repository files navigation


ScrapyNode

Fully automatic Backpack.tf & Scrap.tf trading bot written in TypeScript.

Node.js TypeScript Jest


How it works?

It fetches data from Backpack.tf and Scrapy.tf, compares their buy and sell prices of items and finally trades with their bots if profitable.

  1. First it initializes APIs it uses and gets items. Optionally creates Backpack.tf alerts for them.
  2. Because of the alerts, it can fetch unread notifications and mark them as read.
  3. From alerts, it gets needed data, such as the name of the item or price.
  4. Then it calculates profit, that the bot uses to check if it should trade the item by comparing prices between the two websites.
  5. It updates key (currency) price and item data every KEY_UPDATE_INTERVAL and ITEMS_UPDATE_INTERVAL respectively.

Installation

  1. Clone the repository.
git clone https://github.com/tomaszjagielka/ScrapyNode.git
  1. Install NPM packages.
npm install

Usage

  1. Configure your bot by editing the template.env file.
  2. Rename the template.env file to .env
  3. Compile the project using tsc
  4. Run the app using start.bat

Development tips

  • Use npm run app to automatically build and run the app.
  • Use tsc -w to automatically recompile the project after every code change.
  • Use npm run build to automatically recompile and relaunch the app after every code change.
  • Use npm run test to run the tests and forcefully exit.

About

Fully automatic Backpack.tf & Scrap.tf trading bot written in TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages