Linux VPS

Einen Discord-Bot hosten (Node.js)

Einen Discord-Bot rund um die Uhr auf einem Linux-VPS von HolyCloud mit Node.js und PM2 betreiben.

~7 Minuten Lesezeit Anfänger #discord#bot#nodejs#vps

Mit einem VPS bleibt Ihr Discord-Bot rund um die Uhr online. Landingpage: Discord-Server. Übersicht: VPS.

Voraussetzungen

  • Linux-VPS mit 1–2 GB RAM
  • Token aus dem Discord-Developer-Portal

Minimaler Stack

sudo apt update && sudo apt install -y nodejs npm
mkdir -p ~/discord-bot && cd ~/discord-bot
npm init -y
npm install discord.js dotenv
npm install -g pm2
pm2 start index.js --name discord-bot
pm2 save && pm2 startup

Weiterführend