-
Notifications
You must be signed in to change notification settings - Fork 41
Installation
This page will go through how to download the bot and other tools.
The way you download the bot is by using Git. Git is a distributed version-control system for tracking changes in source code during software development (https://en.wikipedia.org/wiki/Git).
(You don't need to use Git to download the bot, but it makes it a lot easier to update the bot)
Download Git from https://git-scm.com/
Git should already be installed, check if it is by opening the terminal and using the command git -v
.
Download from https://nodejs.org/.
Once you have installed Git then you can follow these steps.
Open a command prompt or terminal and navigate to where you want the bot to be located. This location can always be changed later on. In this example we just use the Desktop.
cd Desktop
to navigate to the Desktop.
Use git clone https://github.com/Nicklason/tf2-automatic.git --branch master
to clone the repository and choose the master branch. The master branch contains released code and is considered to be stable.
Once it has been cloned a new folder will be made called tf2-automatic
. Navigate to it using cd tf2-automatic
.
The bot is made with TypeScript. This means that you need to compile the source code to be able to run it.
npm install typescript@latest -g
will install TypeScript.
When the bot has been downloaded you need to install the modules. Do this by navigating to the tf2-automatic folder with the command prompt or a terminal and using the command npm install
.
If you already have installed TypeScript, then npm run build
will compile the code. If you haven't then see Installing TypeScript.
Compile the source using npm run build
The compiled code will now be inside a folder called dist.
This is most likely because you are missing the permissions to install typescript globally. If you are on a VPS, then use sudo npm install typescript@latest -g
.
Click here to see how to configure the bot.