-
-
Notifications
You must be signed in to change notification settings - Fork 78
Updating the bot
Make sure you've joined the TF2Autobot Discord server and head over to #🆚roles
channel and react to the first message to get notified whenever an update has been released!
Updating the bot is the same for both Windows and Linux.
Open up a command prompt or terminal/ssh window and navigate to your tf2autobot
folder
cd path/to/tf2autobot
OR just cd tf2autobot
if you follow the instructions in Downloading the bot.
If your bot is installed on the Desktop you will use
cd Desktop/tf2autobot
.
After that, you will download and install the newest version by typing
git checkout master && git pull && npm install && npm run build
Now all you have to do is restart your bot and you will be running the newest version.
Some updates introduce new variables to your environment file which add new and improved features to your bot. You must update your environment file with the newly added variables for everything to function properly.
To do that you should check out the updated environment files for Windows and Linux depending on which OS you use to run your bot.
Once you have the respective file open, it's usually recommended to copy-paste it into your existing environment file and fill everything out. If you know the exact variables that were changed/added since the last time you updated the bot and your environment file, you can feel free to only copy-paste those into your existing environment file.
You have unstaged changes, meaning that you have modified a file in the repository. To get rid of these changes, use git reset HEAD --hard
.
Please note that this will delete all changes, if you have code you wish to keep, create a fork/copy of the repository on GitHub, and commit your changes to it.
- Getting a VPS
- Downloading the bot
- Configuring the bot
- Running the bot (node and PM2)
- Introduction to pricelist
- Parameters
- Manage pricelist
- Other commands