This guide will help you set up the old Strange Bot on a fresh Ubuntu 22.04 VPS. It covers installing Node.js, configuring your firewall, and keeping the bot running with PM2.
sudo apt update && sudo apt upgrade -y sudo apt install curl git ufw -ycurl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt install -y nodejssudo apt install git -y git clone https://github.com/saiteja-madha/discord-js-bot.git cd discord-js-botnpm installRename .env.example to .env and configure:
sudo ufw allow OpenSSH sudo ufw allow 80 sudo ufw allow 443 sudo ufw enable✅ This ensures HTTP and HTTPS traffic work if needed.
node index.jssudo npm install -g pm2 pm2 start index.js pm2 save pm2 startup🔁 Bot will restart automatically if your VPS reboots.
Need a fast, affordable, and beginner-friendly VPS to host your bot? We recommend using:
🌐 Breeze Host – Get Started NowAffiliate Disclosure: We may earn a small commission if you use our link — it helps support this project!
Disclaimer: This is based off of the US! Others may experience lag etc.