-
Notifications
You must be signed in to change notification settings - Fork 41
Installation
These instructions will guide you through downloading and installing the bot.
It is HIGHLY recommended that you use git. Using git will make it very easy to install and update the bot when new changes are released (this is quite frequently), it is a lot faster than downloading and setting it up manually.
Download git from their official page and go through the installation process. If you're not sure if you already have it, open a command prompt / terminal and write git --version
, if you see a version, then you know that it is installed.
You install the repository by writing git clone https://github.com/Nicklason/tf2-automatic.git
. You can also choose a directory, like this: git clone https://github.com/Nicklason/tf2-automatic.git bot
, this will clone the repository to a folder named bot.
Download the whole repository by clicking on the green button on the main page. Remember to extract the downloaded ZIP file.
NPM (Node Package Manager) is used to download and install the NodeJS modules that the bot needs. NPM comes with the NodeJS installation, you install NodeJS here. To check if it is already installed, write node -v
and npm -v
.
Once NodeJS is installed, go to the folder and install the modules by double-clicking on the install.bat file. If you are not using Windows - Navigate to the folder and use the command npm install
.
You've now installed the source, and its dependencies. You are now ready to configure the bot, proceed to the configuration guide.
When a change has been pushed to the repository, you want to update the bot for the changes to take place. You can do this by downloading the bot again, and replacing the temp
folder. If you're using git
, then navigate to the bot and type git pull
. This will pull any changes from the repository to your repository, you don't need to replace any files when doing this.
You might also need to update the packages that the bot uses every now and again, you can do this by writing npm update
inside of the bot folder.
Once the bot is updated, then you need to restart it for the changes to take place. You do this by either closing cmd
, or terminal
, if you run your bot using the automatic.bat
file, or by running it using node automatic.js
.
If you're using PM2, then you want to restart the process with pm2 restart automatic.js
.