We will be going over on how to host the bot by yourself on a VPS (Virtual Private Server).
Note: I will not be going over the basics such as creating a server, logging in via ssh and the other basics. Feel free to research that on your own time!
- Familiarize yourself with Linux since this tutorial will be for Ubuntu 20.4
- Choose a good hosting provider. You can look up some for yourself but for this, I will be recommending Digital Ocean. You can use my referral code here to earn $100 for free for 60 days
- The $5/mo plan would be plenty for OctoCat version
1.0.0
- The $5/mo plan would be plenty for OctoCat version
- Have SSH setup on the VPS for maximum protection and not use root user. Please check out this article if you're unsure how to create new users.
sudo apt update
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
node --version
Run the last command to see if the latest update of Node.js version 12 is installed properly.
Here, I will be downloading OctoCat to the /bin
folder, but feel free to do it anywhere you like.
cd /bin
git clone https://github.com/tommyshelby9121/octocat.git
cd octocat
npm install
# Start bot
npm start
# Turn bot off
ctrl+C
sudo npm i pm2 -g
pm2 start src/index
# To make sure bot comes online when reboot
pm2 startup ubuntu
Having issues? Join the support discord!