This tutorial assumes you're going to be using Ubuntu 16.04 x64 LTS and that you know how to connect to your server or VPS using Putty.
Before we start..
The following script is not meant for beginners. It's strongly advised to learn how the code works before using it. SteamApis takes no responsibility for any loss of items.
- Linux, Windows
- Putty To connect to your machine
- SteamApis Access to
Market/Items endpoints and available funds.
Curl / Node / Git
sudo apt update
Stop Apache & Nginx
sudo systemctl stop apache2
sudo systemctl stop nginx
Check if you have curl installed by typing
curl into the command line. You should see the following if it's installed:
curl: try 'curl --help' or 'curl --manual' for more information
If it's not installed type
sudo apt install curl into the command line. Press
Enter if it wants you to confirm the installation.
We're going to be installing Node from the PPA that's maintained by NodeSource. This is a more up-to-date version of Node.js than the one in official Ubuntu repository.
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package.
sudo apt install nodejs
sudo apt install build-essential
apt install git
In this part we will be cloning the script files to your machine where it'll be running.
git clone https://github.com/pepzwee/node-csgo-web-tradebot.git tradebot
npm i -g pm2
To run this script you're going to have to edit the
vim is not installed -
sudo apt install vim
i to edit the file, you can move around with your arrow keys.
What to change?
- appID If you wish to have a trading site for another Steam game. This is by default set to
- contextID Related to the appID. Valve games usually have
2 as the value.
- accountName Bot username
- password Bot password
- steamID64 Bot SteamID64 value
- steamApiKey API key from: https://steamcommunity.com/dev/apikey
- SteamApisKey API key from: https://steamapis.com/user/access
- domain Domain name where the site will be accessible from, example:
- website Full URL for the website, example:
Everything else is optional, change as you see fit.
Once you're done changing the
config.js file and wish to save press
SHIFT + Z + Z
Starting / Stopping / Restarting
Running the script
Since we want the script to be running even after we've closed the terminal window we will be using
Starting it for the first time
pm2 start index.js -n "Tradebot"
pm2 start 0
pm2 restart 0
pm2 stop 0
Logs (Errors etc..)
pm2 logs 0
Where do I get secrets?
As you might've noticed the
config.js file requires your bot secret values. This is not covered in this tutorial.
Some resources which might help you