A lot of people ask how to host their bots on a raspberry pi, and there’s a lot of conflicting information on the internet, well my fellow idiots, I’m here to give you the information you’ll need to get your discord.js bot running on node v6 on a raspberry pi.

I’m using a Raspberry Pi 2 Model B running in headless mode with a WiFi dongle, on Raspbian 8 (Jessie)

Commands used in the video;
lsb_release -a
node –version
npm –version
sudo apt-get remove –purge node* npm*
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash –
sudo apt-get install -y nodejs
sudo npm install pm2 -g
pm2 startup
Then follow the on screen instructions

Leave a Reply

Your email address will not be published. Required fields are marked *