-
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, open a command prompt or a terminal and navigate to the location where you want the bot to be saved. You can always move the folder to a different location, but for this example we will use the desktop. Write cd Desktop
in the console and hit enter, then you should see it says something like C:\Users\<Your Username>\Desktop>
. When at the desktop, use the command git clone https://github.com/Nicklason/tf2-automatic.git
. Once it is done cloning, then the bot has been downloaded to a new folder called tf2-automatic
.
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
.
The bot is made with typescript. This means that you need to compile the source code to be able to run it.
Steps to compile the source:
- Install typescript using
npm install typescript@latest -g
- Install dependencies using
npm install
- Compile the source using
tsc -p .
ornpm run compile
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
.
You probably forgot the dot.
Click here to see how to configure the bot.