diff --git a/404.html b/404.html index 0764816..009e4a2 100644 --- a/404.html +++ b/404.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/advanced/index.html b/advanced/index.html index bb66ce8..880fa96 100644 --- a/advanced/index.html +++ b/advanced/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/advanced/installingmodulespackages/index.html b/advanced/installingmodulespackages/index.html index 7620b7d..54767e3 100644 --- a/advanced/installingmodulespackages/index.html +++ b/advanced/installingmodulespackages/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/automations/index.html b/automations/index.html index dce9030..9beec58 100644 --- a/automations/index.html +++ b/automations/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/basics/anchors/index.html b/basics/anchors/index.html index 7011d29..874bd33 100644 --- a/basics/anchors/index.html +++ b/basics/anchors/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/anchorsjumpingskipping/index.html b/basics/anchorsjumpingskipping/index.html index c2118cf..ee58f16 100644 --- a/basics/anchorsjumpingskipping/index.html +++ b/basics/anchorsjumpingskipping/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/basicnavigation/index.html b/basics/basicnavigation/index.html index 51ae68d..2a5da61 100644 --- a/basics/basicnavigation/index.html +++ b/basics/basicnavigation/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/commands/index.html b/basics/commands/index.html index 08c5970..d455b7c 100644 --- a/basics/commands/index.html +++ b/basics/commands/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/commonissues/index.html b/basics/commonissues/index.html index fa81d15..67fb65e 100644 --- a/basics/commonissues/index.html +++ b/basics/commonissues/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/data/index.html b/basics/data/index.html index 6c77225..4f7823d 100644 --- a/basics/data/index.html +++ b/basics/data/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/index.html b/basics/index.html index d8971ec..90a7e4a 100644 --- a/basics/index.html +++ b/basics/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/list/index.html b/basics/list/index.html index a1dc1c7..2dcaefd 100644 --- a/basics/list/index.html +++ b/basics/list/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/logic/index.html b/basics/logic/index.html index f3889f5..1a73f9f 100644 --- a/basics/logic/index.html +++ b/basics/logic/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/setup/index.html b/basics/setup/index.html index 3c7470b..1a70c48 100644 --- a/basics/setup/index.html +++ b/basics/setup/index.html @@ -6,7 +6,7 @@ - + @@ -35,11 +35,11 @@ - + - + - +
diff --git a/basics/textcommands/index.html b/basics/textcommands/index.html index cff3c5a..79f816c 100644 --- a/basics/textcommands/index.html +++ b/basics/textcommands/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/basics/variables/index.html b/basics/variables/index.html index c9fe5e3..4c88a21 100644 --- a/basics/variables/index.html +++ b/basics/variables/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/advanced/index.html b/categories/advanced/index.html index a2c2712..909186f 100644 --- a/categories/advanced/index.html +++ b/categories/advanced/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/basic/index.html b/categories/basic/index.html index 14dcbfb..6e5296c 100644 --- a/categories/basic/index.html +++ b/categories/basic/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/event/index.html b/categories/event/index.html index a83b8d6..24a4f7b 100644 --- a/categories/event/index.html +++ b/categories/event/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/faq/index.html b/categories/faq/index.html index 8325328..9fd3e63 100644 --- a/categories/faq/index.html +++ b/categories/faq/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/general/index.html b/categories/general/index.html index 816ce05..f691b6f 100644 --- a/categories/general/index.html +++ b/categories/general/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/guide/index.html b/categories/guide/index.html index 2343559..5c60e75 100644 --- a/categories/guide/index.html +++ b/categories/guide/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/hosting/index.html b/categories/hosting/index.html index 2d0a153..f01c6eb 100644 --- a/categories/hosting/index.html +++ b/categories/hosting/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
@@ -277,10 +277,14 @@

Pebblehost

- + +
+ +
hosting
-
Raspberry Pi
+
RaspberryPI
+
diff --git a/categories/index.html b/categories/index.html index 322c6ae..4cc9204 100644 --- a/categories/index.html +++ b/categories/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/intermediate/index.html b/categories/intermediate/index.html index b7e772f..1cc59ff 100644 --- a/categories/intermediate/index.html +++ b/categories/intermediate/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/mods/index.html b/categories/mods/index.html index dcb278f..54aeb65 100644 --- a/categories/mods/index.html +++ b/categories/mods/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/categories/theme/index.html b/categories/theme/index.html index c6c5d8c..61bea42 100644 --- a/categories/theme/index.html +++ b/categories/theme/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/code_of_conduct/index.html b/code_of_conduct/index.html index fe92d8e..4636026 100644 --- a/code_of_conduct/index.html +++ b/code_of_conduct/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/contributing/index.html b/contributing/index.html index 9bb8683..80fa862 100644 --- a/contributing/index.html +++ b/contributing/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/faq/areprojectscopyrighted/index.html b/faq/areprojectscopyrighted/index.html index ae98527..e4da709 100644 --- a/faq/areprojectscopyrighted/index.html +++ b/faq/areprojectscopyrighted/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/faq/drmprotection/index.html b/faq/drmprotection/index.html index d15edc8..110f56e 100644 --- a/faq/drmprotection/index.html +++ b/faq/drmprotection/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/faq/howtoaddrawdata/index.html b/faq/howtoaddrawdata/index.html index 2e3fd1d..b6951e9 100644 --- a/faq/howtoaddrawdata/index.html +++ b/faq/howtoaddrawdata/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/faq/howtomodifyappsfiles/index.html b/faq/howtomodifyappsfiles/index.html index bc756f9..43d29cb 100644 --- a/faq/howtomodifyappsfiles/index.html +++ b/faq/howtomodifyappsfiles/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/faq/index.html b/faq/index.html index 300acbb..99f08ef 100644 --- a/faq/index.html +++ b/faq/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/faq/isitfree/index.html b/faq/isitfree/index.html index c3c745e..e56e6fc 100644 --- a/faq/isitfree/index.html +++ b/faq/isitfree/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/faq/linuxsupport/index.html b/faq/linuxsupport/index.html index 4dc6cfe..175fd51 100644 --- a/faq/linuxsupport/index.html +++ b/faq/linuxsupport/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/faq/storingprojects/index.html b/faq/storingprojects/index.html index f6fffe5..eb31b42 100644 --- a/faq/storingprojects/index.html +++ b/faq/storingprojects/index.html @@ -6,7 +6,7 @@ - + @@ -33,12 +33,12 @@ - + - + - - + +
diff --git a/faq/whybmd/index.html b/faq/whybmd/index.html index 3d79314..e7e7e3b 100644 --- a/faq/whybmd/index.html +++ b/faq/whybmd/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/hosting/digitialocean/index.html b/hosting/digitialocean/index.html index 3c5011a..4d7b037 100644 --- a/hosting/digitialocean/index.html +++ b/hosting/digitialocean/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/hosting/heroku/index.html b/hosting/heroku/index.html index 4460d62..6836adb 100644 --- a/hosting/heroku/index.html +++ b/hosting/heroku/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
diff --git a/hosting/index.html b/hosting/index.html index 92e2871..570fe12 100644 --- a/hosting/index.html +++ b/hosting/index.html @@ -6,7 +6,7 @@ - + @@ -33,11 +33,11 @@ - + - + - +
diff --git a/hosting/pebblehost/index.html b/hosting/pebblehost/index.html index e1640f3..74e289a 100644 --- a/hosting/pebblehost/index.html +++ b/hosting/pebblehost/index.html @@ -6,7 +6,7 @@ - + @@ -30,11 +30,11 @@ - + - + - +
@@ -294,10 +294,10 @@

- + Next - Raspberry Pi + Raspberry​PI diff --git a/hosting/raspbberrypi/index.html b/hosting/raspberrypi/index.html similarity index 80% rename from hosting/raspbberrypi/index.html rename to hosting/raspberrypi/index.html index 4fdced0..61b41c8 100644 --- a/hosting/raspbberrypi/index.html +++ b/hosting/raspberrypi/index.html @@ -6,35 +6,41 @@ - + - Raspberry Pi | Bot Maker 4 Discord - + RaspberryPI | Bot Maker 4 Discord + + - + - - + + + + - - + + + + - + - + - + +
@@ -245,41 +251,135 @@
- +

- # - Raspberry Pi + # + RaspberryPI

+ +

+ # + image- +icon: https://static-00.iconduck.com/assets.00/raspberry-pi-icon-2048x2048-p0y4r07x.png +label: Raspberry Pi +description: +layout: defualt +categories: [hosting] +tags: [hosting, freehost, paidhost] +expanded: true +visibility: public +

+
+

Installing NodeJS on Raspberry Pi

+

Before we begin installing NodeJS on the Raspberry Pi, we need to update and upgrade the packages to receive the latest updates.

+
+
sudo apt update
+sudo apt upgrade
+
+

We can now proceed with installing NodeJS:

+
+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
+sudo apt-get install -y nodejs
+
+

To confirm that we have now successfully installed NodeJS, we can run the following command:

+
+
node -v
+npm -v
+
+

Now we need to install a module called pnpm which we will be using later on

+
+
sudo npm i pnpm -g
+
+

Uploading Bot Project

+

FileZilla is the easiest method to upload your bot files. However, we need to connect our Raspberry Pi first.

+

Firstly, we need to open Site Manager and create a New Site:

+
    +
  • Host = IP of your Raspberry Pi
  • +
  • Port = 22
  • +
  • Protocol = SFTP - SSH File Transfer Protocol
  • +
  • Logon Type = Ask For Password (Personal preference)
  • +
  • User = Username of your Raspberry Pi
  • +
  • Password = Your Raspberry Pi SSH password
  • +
+

+ +
+
+

+

Once you have saved and successfully connected, you can now drag and drop your exported files to the Raspberry Pi!

+

Back to the SSH terminal, we need to find the folder. In my use case, it would be in /home/df/bmd-bot, so I type in cd /home/df/bmd-bot.

+

Before we begin to run the bot, we need to install modules in order for the Discord bot to function:

+
+
pnpm i
+
+
+
+ +
+

Finally, run the command node bot.js and now the bot is hosted on your Raspberry Pi. Yippie!

+

You can now close your FileZilla until you need it again in the future.

+
+
+ +
+

PM2 (Optional)

+

+ +
+
+

+
+
npm i pm2 -g
+
+

Navigate to your bot folder and enter the following command:

+
+
sudo pm2 start bot.js --name <app_name>
+
+

Example:

+

sudo pm2 start bot.js --name TheBestBotEver

+

You can go even further by configuring PM2 to restart your bot when files change, set a memory threshold for bot reload, and much more. For detailed instructions, visit https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page

+

To check your bot's usage, enter: sudo pm2 monit.

- - +