From 3d3495e9b93b1b8b11de05f2c584f3ac4b5ada00 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:44:03 +0200 Subject: [PATCH 01/32] initial --- content/_categories/discord/discordjs.md | 13 +++++++++++++ .../discordjs/2025-06-16-create-discordjs.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 content/_categories/discord/discordjs.md create mode 100644 content/_posts/discord/discordjs/2025-06-16-create-discordjs.md diff --git a/content/_categories/discord/discordjs.md b/content/_categories/discord/discordjs.md new file mode 100644 index 00000000..b369669e --- /dev/null +++ b/content/_categories/discord/discordjs.md @@ -0,0 +1,13 @@ +--- +layout: category +title: "Discord.js" +permalink: discord/discordjs +section: discord +category: discordjs +tags: + - General +description: "Learn how to create and host a discord.js bot" +icon: "content/assets/images/categories/user-gear.svg" +color: "#1b4db1" +cat_order: 2 +--- \ No newline at end of file diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md new file mode 100644 index 00000000..71579a3b --- /dev/null +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -0,0 +1,13 @@ +--- +layout: post +title: "How To Create A Discord.js Bot" +category: discordjs +tags: General +permalink: discord/discordjs/general/create-discord-js +description: "Learn how to Create and Host A Discord bot using the discord.js package" +keywords: + - keyword: discord.js + matches: ["create", "host"] +author: TWIXhunter +--- + From cb64b6aa08d863f207ce38c94172ada8cc78ba57 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:03:02 +0200 Subject: [PATCH 02/32] write article --- .../discordjs/2025-06-16-create-discordjs.md | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index 71579a3b..b1e5eaba 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -11,3 +11,70 @@ keywords: author: TWIXhunter --- +Creating and hosting a Discord bot using Discord.js allows you to bring custom functionality, automation, and interactive features directly into your Discord server. Whether you're building a moderation tool, music player, or a fun chatbot, Discord.js gives you the flexibility to make it happen with JavaScript. + +> Running a Discord bot is only possible on a paid Falixnodes plan. + +If you want more information about discord.js or JavaScript then please see the official discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). + +## Creating the server +1. Log in to the [Dashboard](https://client.falixnodes.net/). + +2. In the navigation menu, click on [Create Server](https://client.falixnodes.net/create). + +3. Scroll down to "Create Server" and input the respective values into each field. + +4. Select "Custom Game server" in the "Select Your Game" dropdown. + +5. Create the server and open the console. + +6. Start the server and enter `5` to select `Discord Bot Hosting`. + +7. Enter `1` to select `Bot Hosting`. + +## Setting up the discord.js package +1. Navigate to the Filemanager + +2. Create a new file called `package.json` (if it doesn't already exists) and enter the following: + +```json +{ + "main": "bot.js", // Set this to the main file of your bot + "scripts": { + "start": "node bot.js" // Set this to the main file of your bot + }, + "dependencies": { + "discord.js": "^14.14.1", + "dotenv": "^16.3.1", + "ms": "^2.1.3" + }, + "engines": { + "node": ">=18.0.0" + } +} +``` + +3. create a new file called `.env` and enter the following: +´´´ +# discord bot token - DO NOT SHARE WITH ANYONE +TOKEN=Your-discord-bot-token-here +´´´ + {: .warning} + > Do not share the bot token with anyone, even if they claim to be support, Your bottoken serves as a password for your bot, sharing it will give anyone full access to your bot (and the servers it is in). + + {: .info} + > If you do not have a discord Aplication/bot set up yet then please read the instructions here. + +4. Create or upload your bot.js file (sometimes reffered to as main.js or index.js), this file will contain the code that your bot must run at startup. more info and examples can be found here + +5. Navigate back to the console and start the server. + +6. Select `8` to install all the packages included in package.js + +7. Wait for the server to restart and then enter `10` to `Run npm start`. + +8. If asked, enter `nodejs24.1.0` to start the latest version of nodejs (at the time of writing). + + > you can skip this step by setting the `NodeJS version` in [the settings page](https://client.falixnodes.net/server/settings). + +9. The server should now start your discord bot. \ No newline at end of file From 1701f960910540135aeab702aae804704575f7d3 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:03:23 +0200 Subject: [PATCH 03/32] add link --- content/_posts/discord/discordjs/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index b1e5eaba..632d6620 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -65,7 +65,7 @@ TOKEN=Your-discord-bot-token-here {: .info} > If you do not have a discord Aplication/bot set up yet then please read the instructions here. -4. Create or upload your bot.js file (sometimes reffered to as main.js or index.js), this file will contain the code that your bot must run at startup. more info and examples can be found here +4. Create or upload your bot.js file (sometimes reffered to as main.js or index.js), this file will contain the code that your bot must run at startup. more info and examples can be found [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application) 5. Navigate back to the console and start the server. From e803c752f758323e7900d023f452d8bf9108482d Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:06:40 +0200 Subject: [PATCH 04/32] add extra options --- .../_posts/discord/discordjs/2025-06-16-create-discordjs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index 632d6620..ebc320dc 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -39,9 +39,9 @@ If you want more information about discord.js or JavaScript then please see the ```json { - "main": "bot.js", // Set this to the main file of your bot + "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js) "scripts": { - "start": "node bot.js" // Set this to the main file of your bot + "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js) }, "dependencies": { "discord.js": "^14.14.1", From 1aec94818ff85f2e724f8f14e6ef8a6c9cd13853 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:23:01 +0200 Subject: [PATCH 05/32] small fixes --- .../discordjs/2025-06-16-create-discordjs.md | 57 ++++++++++++------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index ebc320dc..c80e321d 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -11,31 +11,46 @@ keywords: author: TWIXhunter --- -Creating and hosting a Discord bot using Discord.js allows you to bring custom functionality, automation, and interactive features directly into your Discord server. Whether you're building a moderation tool, music player, or a fun chatbot, Discord.js gives you the flexibility to make it happen with JavaScript. +--- +Layout: Post +Title: How to Create a Discord.js Bot +Category: Discord.js +Tags: General +Permalink: discord/discordjs/general/create-discord-js +Description: 'Learn how to create and host a Discord bot using the Discord.js package.' +Keywords: + - keyword: discord.js + matches: Create, Host +Author: TWIXhunter +— -> Running a Discord bot is only possible on a paid Falixnodes plan. +Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Node.js. -If you want more information about discord.js or JavaScript then please see the official discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). +Running a Discord bot is only possible on a paid FalixNodes plan. -## Creating the server +For more information about Discord.js or JavaScript, please refer to the official Discord.js guides and documentation. + +Creating the server 1. Log in to the [Dashboard](https://client.falixnodes.net/). -2. In the navigation menu, click on [Create Server](https://client.falixnodes.net/create). +2. In the navigation menu, click on Create Server. + +3. Enter a name and domain for your server. -3. Scroll down to "Create Server" and input the respective values into each field. +4. Select 'Custom Game Server' from the 'Select Your Game' dropdown menu. -4. Select "Custom Game server" in the "Select Your Game" dropdown. +5. Choose the wanted resources and location and accept the EULA. 5. Create the server and open the console. -6. Start the server and enter `5` to select `Discord Bot Hosting`. +6. Start the server and enter 5 to select 'Discord Bot Hosting'. -7. Enter `1` to select `Bot Hosting`. +7. Enter 1 to select 'Bot Hosting'. -## Setting up the discord.js package -1. Navigate to the Filemanager +## Setting up the Discord.js package +1. Navigate to the File Manager. -2. Create a new file called `package.json` (if it doesn't already exists) and enter the following: +2. Create a new file called 'package.json' (if it doesn't already exist) and enter the following: ```json { @@ -54,27 +69,27 @@ If you want more information about discord.js or JavaScript then please see the } ``` -3. create a new file called `.env` and enter the following: +3. Create a new file called `.env` and enter the following: ´´´ # discord bot token - DO NOT SHARE WITH ANYONE TOKEN=Your-discord-bot-token-here ´´´ {: .warning} - > Do not share the bot token with anyone, even if they claim to be support, Your bottoken serves as a password for your bot, sharing it will give anyone full access to your bot (and the servers it is in). + > Do not share the bot token with anyone, even if they claim to be from Support. Your bot token serves as a password for your bot. Sharing it will give anyone full access to your bot and the servers it is in. {: .info} - > If you do not have a discord Aplication/bot set up yet then please read the instructions here. + > If you do not yet have a Discord application/bot set up, please read the instructions here. -4. Create or upload your bot.js file (sometimes reffered to as main.js or index.js), this file will contain the code that your bot must run at startup. more info and examples can be found [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application) +4. Upload or create your bot.js file. This is the main file that your bot runs at startup. Depending on your setup, it may also be named main.js or index.js (make sure that it matches the name in package.json). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). 5. Navigate back to the console and start the server. -6. Select `8` to install all the packages included in package.js +6. Select `8` to install all the packages included in package.json. -7. Wait for the server to restart and then enter `10` to `Run npm start`. +7. Wait for the server to restart, then enter `10` to run `npm start`. -8. If asked, enter `nodejs24.1.0` to start the latest version of nodejs (at the time of writing). +8. If prompted, enter `nodejs24.1.0` to start the latest version of Node.js (at the time of writing). - > you can skip this step by setting the `NodeJS version` in [the settings page](https://client.falixnodes.net/server/settings). + > You can skip this step by setting the NodeJS version in the settings page. -9. The server should now start your discord bot. \ No newline at end of file +9. The server should now start your Discord bot. \ No newline at end of file From 22ffdf3404b72a76c8d5a5759d14b7809b87087a Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:23:32 +0200 Subject: [PATCH 06/32] oeps --- .../discordjs/2025-06-16-create-discordjs.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index c80e321d..339aafda 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -11,19 +11,6 @@ keywords: author: TWIXhunter --- ---- -Layout: Post -Title: How to Create a Discord.js Bot -Category: Discord.js -Tags: General -Permalink: discord/discordjs/general/create-discord-js -Description: 'Learn how to create and host a Discord bot using the Discord.js package.' -Keywords: - - keyword: discord.js - matches: Create, Host -Author: TWIXhunter -— - Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Node.js. Running a Discord bot is only possible on a paid FalixNodes plan. From 7b4517a5edfba4f5b11c679aaa95be25cc13bd21 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:16:28 +0200 Subject: [PATCH 07/32] small changes P2 --- .../discordjs/2025-06-16-create-discordjs.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md index 339aafda..ea51b5e8 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md @@ -3,7 +3,7 @@ layout: post title: "How To Create A Discord.js Bot" category: discordjs tags: General -permalink: discord/discordjs/general/create-discord-js +permalink: discord/discordjs/general/create-discorsjs description: "Learn how to Create and Host A Discord bot using the discord.js package" keywords: - keyword: discord.js @@ -11,22 +11,23 @@ keywords: author: TWIXhunter --- -Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Node.js. +Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Nodejs. -Running a Discord bot is only possible on a paid FalixNodes plan. +{: .warning} +> Running a Discord bot is only possible on a paid FalixNodes plan. -For more information about Discord.js or JavaScript, please refer to the official Discord.js guides and documentation. +For more information about Discord.js or JavaScript, please refer to the official Discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). -Creating the server +## Creating the server 1. Log in to the [Dashboard](https://client.falixnodes.net/). 2. In the navigation menu, click on Create Server. 3. Enter a name and domain for your server. -4. Select 'Custom Game Server' from the 'Select Your Game' dropdown menu. +4. Select `Custom Game Server` from the `Select Your Game` dropdown menu. -5. Choose the wanted resources and location and accept the EULA. +5. Choose the desired resources and location and accept the EULA. 5. Create the server and open the console. From 533fd7ebc0076d238094f76ae1724ccc78e13fb3 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:41:10 +0200 Subject: [PATCH 08/32] move to other/discord/ (instead of discord/discord/) --- .../{discord => other}/discordjs/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename content/_posts/{discord => other}/discordjs/2025-06-16-create-discordjs.md (95%) diff --git a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md b/content/_posts/other/discordjs/2025-06-16-create-discordjs.md similarity index 95% rename from content/_posts/discord/discordjs/2025-06-16-create-discordjs.md rename to content/_posts/other/discordjs/2025-06-16-create-discordjs.md index ea51b5e8..bdc738b0 100644 --- a/content/_posts/discord/discordjs/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discordjs/2025-06-16-create-discordjs.md @@ -3,7 +3,7 @@ layout: post title: "How To Create A Discord.js Bot" category: discordjs tags: General -permalink: discord/discordjs/general/create-discorsjs +permalink: other/discord/general/create-discorsjs description: "Learn how to Create and Host A Discord bot using the discord.js package" keywords: - keyword: discord.js From ec98ce8df971b2f79f37da0222ad3849abdbfe29 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:32:12 +0200 Subject: [PATCH 09/32] rename discordjs to discord --- .../other/{discordjs => discord}/2025-06-16-create-discordjs.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/_posts/other/{discordjs => discord}/2025-06-16-create-discordjs.md (100%) diff --git a/content/_posts/other/discordjs/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md similarity index 100% rename from content/_posts/other/discordjs/2025-06-16-create-discordjs.md rename to content/_posts/other/discord/2025-06-16-create-discordjs.md From aa18d09136c1f471b323d419a3bc88f8d1c006b4 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:36:37 +0200 Subject: [PATCH 10/32] move to other/discord and initial "npm install" --- .../{discord/discordjs.md => other/discord.md} | 8 ++++---- .../other/discord/2025-06-16-create-discordjs.md | 2 +- .../_posts/other/discord/2025-06-25-npm-install.md | 12 ++++++++++++ 3 files changed, 17 insertions(+), 5 deletions(-) rename content/_categories/{discord/discordjs.md => other/discord.md} (50%) create mode 100644 content/_posts/other/discord/2025-06-25-npm-install.md diff --git a/content/_categories/discord/discordjs.md b/content/_categories/other/discord.md similarity index 50% rename from content/_categories/discord/discordjs.md rename to content/_categories/other/discord.md index b369669e..c436d065 100644 --- a/content/_categories/discord/discordjs.md +++ b/content/_categories/other/discord.md @@ -1,12 +1,12 @@ --- layout: category -title: "Discord.js" -permalink: discord/discordjs +title: "Discord" +permalink: other/discord section: discord -category: discordjs +category: discord tags: - General -description: "Learn how to create and host a discord.js bot" +description: "Learn how to create and host a discord bot" icon: "content/assets/images/categories/user-gear.svg" color: "#1b4db1" cat_order: 2 diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index bdc738b0..8a82f1bd 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -3,7 +3,7 @@ layout: post title: "How To Create A Discord.js Bot" category: discordjs tags: General -permalink: other/discord/general/create-discorsjs +permalink: other/discord/general/create-discordjs description: "Learn how to Create and Host A Discord bot using the discord.js package" keywords: - keyword: discord.js diff --git a/content/_posts/other/discord/2025-06-25-npm-install.md b/content/_posts/other/discord/2025-06-25-npm-install.md new file mode 100644 index 00000000..11911060 --- /dev/null +++ b/content/_posts/other/discord/2025-06-25-npm-install.md @@ -0,0 +1,12 @@ +--- +layout: post +title: "How To install nodejs packages using npm install" +category: discordjs +tags: General +permalink: other/discord/general/create-discordjs +description: "Learn how to Create and Host A Discord bot using the discord.js package" +keywords: + - keyword: discord.js + matches: ["create", "host"] +author: TWIXhunter +--- \ No newline at end of file From 79a9392df0c0d3103f1ecc936718fdc26847d5c5 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:52:26 +0200 Subject: [PATCH 11/32] npm-install --- .../discord/2025-06-16-create-discordjs.md | 24 +++-------- .../other/discord/2025-06-25-npm-install.md | 42 +++++++++++++++++-- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 8a82f1bd..f121a6a1 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -48,7 +48,6 @@ For more information about Discord.js or JavaScript, please refer to the officia }, "dependencies": { "discord.js": "^14.14.1", - "dotenv": "^16.3.1", "ms": "^2.1.3" }, "engines": { @@ -57,27 +56,16 @@ For more information about Discord.js or JavaScript, please refer to the officia } ``` -3. Create a new file called `.env` and enter the following: -´´´ -# discord bot token - DO NOT SHARE WITH ANYONE -TOKEN=Your-discord-bot-token-here -´´´ - {: .warning} - > Do not share the bot token with anyone, even if they claim to be from Support. Your bot token serves as a password for your bot. Sharing it will give anyone full access to your bot and the servers it is in. +3. Upload or create your bot.js file. This is the main file that your bot runs at startup. Depending on your setup, it may also be named main.js or index.js (make sure that it matches the name in package.json). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). - {: .info} - > If you do not yet have a Discord application/bot set up, please read the instructions here. +4. Navigate back to the console and start the server. -4. Upload or create your bot.js file. This is the main file that your bot runs at startup. Depending on your setup, it may also be named main.js or index.js (make sure that it matches the name in package.json). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). +5. Select `8` to install all the packages included in package.json. -5. Navigate back to the console and start the server. +6. Wait for the server to restart, then enter `10` to run `npm start`. -6. Select `8` to install all the packages included in package.json. - -7. Wait for the server to restart, then enter `10` to run `npm start`. - -8. If prompted, enter `nodejs24.1.0` to start the latest version of Node.js (at the time of writing). +7. If prompted, enter `nodejs24.1.0` to start the latest version of Node.js (at the time of writing). > You can skip this step by setting the NodeJS version in the settings page. -9. The server should now start your Discord bot. \ No newline at end of file +8. The server should now start your Discord bot. \ No newline at end of file diff --git a/content/_posts/other/discord/2025-06-25-npm-install.md b/content/_posts/other/discord/2025-06-25-npm-install.md index 11911060..86200d48 100644 --- a/content/_posts/other/discord/2025-06-25-npm-install.md +++ b/content/_posts/other/discord/2025-06-25-npm-install.md @@ -1,12 +1,46 @@ --- layout: post -title: "How To install nodejs packages using npm install" +title: "How To install nodejs packages" category: discordjs tags: General -permalink: other/discord/general/create-discordjs -description: "Learn how to Create and Host A Discord bot using the discord.js package" +permalink: other/discord/general/npm-install +description: "Learn how to install nodejs packages on your server" keywords: - keyword: discord.js matches: ["create", "host"] author: TWIXhunter ---- \ No newline at end of file +--- + + + +1. Navigate to the File Manager and open the `package.json` file. It should look like the following example: + +```json +{ + "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js) + "scripts": { + "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js) + }, + "dependencies": { + "discord.js": "^14.14.1", + "ms": "^2.1.3" + }, + "engines": { + "node": ">=18.0.0" + } +} +``` + +2. Add the following entry inside the dependencies object: + +```json + "packagename": "^version.number.here" +``` + +3. Ensure each entry (except the last one) ends with a `,` to maintain valid JSON syntax. + +4. Save the file and return to the console. + +5. Start the server and select option `8` to install the Node.js packages. + +6. Wait for the server to install or update all listed packages. From 65ac6eb0b152769a1c63c012b8f871120ef762d2 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:57:34 +0200 Subject: [PATCH 12/32] add link to guides --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index f121a6a1..61cd261d 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -14,7 +14,7 @@ author: TWIXhunter Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Nodejs. {: .warning} -> Running a Discord bot is only possible on a paid FalixNodes plan. +> Running a Discord bot is only possible on a paid Falixnodes plan. For more information about Discord.js or JavaScript, please refer to the official Discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). @@ -68,4 +68,6 @@ For more information about Discord.js or JavaScript, please refer to the officia > You can skip this step by setting the NodeJS version in the settings page. -8. The server should now start your Discord bot. \ No newline at end of file +8. The server should now start your Discord bot. + +> More information about hosting and creating a custom discord.js bot can be found [here](https://discordjs.guide/creating-your-bot/). \ No newline at end of file From 8a5d68d2205181d36bb8a47c3ce0185cd619446e Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:59:44 +0200 Subject: [PATCH 13/32] add category logo --- content/_categories/other/discord.md | 2 +- content/assets/images/categories/discord.svg | 27 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 content/assets/images/categories/discord.svg diff --git a/content/_categories/other/discord.md b/content/_categories/other/discord.md index c436d065..c9164c43 100644 --- a/content/_categories/other/discord.md +++ b/content/_categories/other/discord.md @@ -7,7 +7,7 @@ category: discord tags: - General description: "Learn how to create and host a discord bot" -icon: "content/assets/images/categories/user-gear.svg" +icon: "content/assets/images/categories/discord.svg" color: "#1b4db1" cat_order: 2 --- \ No newline at end of file diff --git a/content/assets/images/categories/discord.svg b/content/assets/images/categories/discord.svg new file mode 100644 index 00000000..8d2c3b0b --- /dev/null +++ b/content/assets/images/categories/discord.svg @@ -0,0 +1,27 @@ + + Discord_logo-svg + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From b1622d197579a3401c68f1aa64159c9f8ce02794 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:02:43 +0200 Subject: [PATCH 14/32] "D"iscord Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 61cd261d..bda2197c 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -1,6 +1,6 @@ --- layout: post -title: "How To Create A Discord.js Bot" +title: "How To Create A discord.js Bot" category: discordjs tags: General permalink: other/discord/general/create-discordjs From 7b541173e41f95d9a91871d303cc051f34285dc5 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:03:15 +0200 Subject: [PATCH 15/32] "c"reate and "h"ost Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index bda2197c..bb695e97 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -4,7 +4,7 @@ title: "How To Create A discord.js Bot" category: discordjs tags: General permalink: other/discord/general/create-discordjs -description: "Learn how to Create and Host A Discord bot using the discord.js package" +description: "Learn how to create and host A Discord bot using the discord.js package" keywords: - keyword: discord.js matches: ["create", "host"] From 21718323618b6d684d445b406c5d30e81b2025c5 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:04:27 +0200 Subject: [PATCH 16/32] Falix"N"odes Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index bb695e97..8a07f8b1 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -14,7 +14,7 @@ author: TWIXhunter Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Nodejs. {: .warning} -> Running a Discord bot is only possible on a paid Falixnodes plan. +> Running a Discord bot is only possible on a paid FalixNodes plan. For more information about Discord.js or JavaScript, please refer to the official Discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). From 9c680896d97068579716d910fd28fdc588c1ac28 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:04:50 +0200 Subject: [PATCH 17/32] Update 2025-06-16-create-discordjs.md Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 8a07f8b1..15ea09c3 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -56,7 +56,7 @@ For more information about Discord.js or JavaScript, please refer to the officia } ``` -3. Upload or create your bot.js file. This is the main file that your bot runs at startup. Depending on your setup, it may also be named main.js or index.js (make sure that it matches the name in package.json). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). +3. Upload or create your `bot.js file`. This is the main file that your bot runs at startup. Depending on your setup, it may also be named `main.js` or `index.js` (make sure that it matches the name in `package.json`). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). 4. Navigate back to the console and start the server. From 4d91f0a43819bd70981775800c4da11d767cac8f Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:07:41 +0200 Subject: [PATCH 18/32] Update 2025-06-25-npm-install.md Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-25-npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-25-npm-install.md b/content/_posts/other/discord/2025-06-25-npm-install.md index 86200d48..50fd215e 100644 --- a/content/_posts/other/discord/2025-06-25-npm-install.md +++ b/content/_posts/other/discord/2025-06-25-npm-install.md @@ -4,7 +4,7 @@ title: "How To install nodejs packages" category: discordjs tags: General permalink: other/discord/general/npm-install -description: "Learn how to install nodejs packages on your server" +description: "Learn how to install Node.js packages on your server" keywords: - keyword: discord.js matches: ["create", "host"] From ecc7c8ecf0dbe8f68ce77d2531104ce86b84bd06 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:07:48 +0200 Subject: [PATCH 19/32] Update 2025-06-16-create-discordjs.md Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 15ea09c3..010ae40c 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -66,7 +66,7 @@ For more information about Discord.js or JavaScript, please refer to the officia 7. If prompted, enter `nodejs24.1.0` to start the latest version of Node.js (at the time of writing). - > You can skip this step by setting the NodeJS version in the settings page. + > You can skip this step by setting the Node.js version in the settings page. 8. The server should now start your Discord bot. From 2d10e0d6305317e84871d6040bb943f1e0951128 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 08:24:05 +0200 Subject: [PATCH 20/32] Update 2025-06-16-create-discordjs.md --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 010ae40c..4ad6616b 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -11,7 +11,7 @@ keywords: author: TWIXhunter --- -Using Discord.js to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, Discord.js gives you the flexibility to do so using JavaScript and Nodejs. +Using [discord.js](https://discord.js.org) to create and host a Discord bot allows you to bring custom functionality, automation and interactive features directly to your Discord server. Whether you're building a moderation tool, a music player or a fun chatbot, discord.js gives you the flexibility to do so using JavaScript and Node.js. {: .warning} > Running a Discord bot is only possible on a paid FalixNodes plan. From 2fc78355e0c69cf6074d99d66374d5a70a0aa17a Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 21:21:28 +0200 Subject: [PATCH 21/32] FIX: resolved the wrong suggestion Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 4ad6616b..c8f4045c 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -16,7 +16,8 @@ Using [discord.js](https://discord.js.org) to create and host a Discord bot allo {: .warning} > Running a Discord bot is only possible on a paid FalixNodes plan. -For more information about Discord.js or JavaScript, please refer to the official Discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). +For more information about discord.js or JavaScript, please refer to the official discord.js [guides](https://discordjs.guide/#before-you-begin) and [documentation](https://discord.js.org/docs/packages/discord.js/14.19.3). + ## Creating the server 1. Log in to the [Dashboard](https://client.falixnodes.net/). From 263d337d91e9ca7c7b125db66a95b935580675dc Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 27 Jun 2025 21:21:46 +0200 Subject: [PATCH 22/32] Update content/_posts/other/discord/2025-06-16-create-discordjs.md Co-authored-by: Metrlith --- content/_posts/other/discord/2025-06-16-create-discordjs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index c8f4045c..6c24689e 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -36,7 +36,8 @@ For more information about discord.js or JavaScript, please refer to the officia 7. Enter 1 to select 'Bot Hosting'. -## Setting up the Discord.js package +## Setting up the discord.js package + 1. Navigate to the File Manager. 2. Create a new file called 'package.json' (if it doesn't already exist) and enter the following: From d45c034ec0f2e787f792ad7f9ebcb36a61212007 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:50:32 +0200 Subject: [PATCH 23/32] Update 2025-06-16-create-discordjs.md --- .../discord/2025-06-16-create-discordjs.md | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 6c24689e..9bb4c321 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -44,13 +44,14 @@ For more information about discord.js or JavaScript, please refer to the officia ```json { - "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js) + "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js). "scripts": { - "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js) + "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js). }, "dependencies": { - "discord.js": "^14.14.1", + "discord.js": "^14.14.1", //some older bots might be build for older versions of discordjs, double check it before you proceed! "ms": "^2.1.3" +// add more dependencies here if needed, install them using the "Install NodeJS packages from package.json" option in the console. }, "engines": { "node": ">=18.0.0" @@ -58,18 +59,22 @@ For more information about discord.js or JavaScript, please refer to the officia } ``` -3. Upload or create your `bot.js file`. This is the main file that your bot runs at startup. Depending on your setup, it may also be named `main.js` or `index.js` (make sure that it matches the name in `package.json`). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). +3. Upload or create your `bot.js file`. This is the main file that your bot runs at startup. Depending on your setup, it may also be named `main.js` or `index.js` (make sure that it matches the name set in `package.json`). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). 4. Navigate back to the console and start the server. 5. Select `8` to install all the packages included in package.json. -6. Wait for the server to restart, then enter `10` to run `npm start`. +6. Wait for the server to restart. -7. If prompted, enter `nodejs24.1.0` to start the latest version of Node.js (at the time of writing). +7. Navigate to the server settings page. - > You can skip this step by setting the Node.js version in the settings page. +8. Find the "Main bot file" option and set it to the name of your main bot file (this file will be ran at startup) -8. The server should now start your Discord bot. +9. Find the "NodeJS version" option and set it to the version of nodeJS required for your bot (most bots will be compatible with the latest version (nodejs24.1.0, at the time of writing) but doubble check it to be sure) -> More information about hosting and creating a custom discord.js bot can be found [here](https://discordjs.guide/creating-your-bot/). \ No newline at end of file +10. Navigate back to the console and start the server. + +11. Select `1` to run the file set in the settings. + +> More information about creating a custom discord.js bot can be found [here](https://discordjs.guide/creating-your-bot/). From c14dcaebf3c6a8d43d7f2f35b2ecf13325f32f61 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:22:58 +0100 Subject: [PATCH 24/32] update for new layout --- content/_categories/other/discord.md | 6 +- .../discord/2025-06-16-create-discordjs.md | 55 +++++-------------- .../other/discord/2025-06-25-npm-install.md | 40 +++++--------- 3 files changed, 31 insertions(+), 70 deletions(-) diff --git a/content/_categories/other/discord.md b/content/_categories/other/discord.md index c9164c43..f13a0ec1 100644 --- a/content/_categories/other/discord.md +++ b/content/_categories/other/discord.md @@ -1,9 +1,9 @@ --- layout: category title: "Discord" -permalink: other/discord -section: discord -category: discord +permalink: other/discord/ +section: Discord +category: Discord tags: - General description: "Learn how to create and host a discord bot" diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2025-06-16-create-discordjs.md index 9bb4c321..4e34d8a0 100644 --- a/content/_posts/other/discord/2025-06-16-create-discordjs.md +++ b/content/_posts/other/discord/2025-06-16-create-discordjs.md @@ -24,57 +24,28 @@ For more information about discord.js or JavaScript, please refer to the officia 2. In the navigation menu, click on Create Server. -3. Enter a name and domain for your server. +3. Select a plan and enter a name and domain for your server. -4. Select `Custom Game Server` from the `Select Your Game` dropdown menu. +4. Go to the "Applications" tab and select "Node.JS" -5. Choose the desired resources and location and accept the EULA. +5. Click continue and choose the desired resources and location. -5. Create the server and open the console. +6. Complete the Billing steps (if needed) or press "Create My Server". -6. Start the server and enter 5 to select 'Discord Bot Hosting'. +7. Select the server to go open the console and wait for nodeJS to be installed. -7. Enter 1 to select 'Bot Hosting'. +## Setting up the Discord Bot -## Setting up the discord.js package +1. In the navigation menu, open the "Server Settings" category and navigate to [Settings](https://client.falixnodes.net/server/settings). -1. Navigate to the File Manager. +2. Go to the "Startup" tab and select the correct NodeJS version in the "Docker Image" Dropdown. -2. Create a new file called 'package.json' (if it doesn't already exist) and enter the following: +2. Go to the "Environment" tab and find the "Additional Node packages" variable. -```json -{ - "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js). - "scripts": { - "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js). - }, - "dependencies": { - "discord.js": "^14.14.1", //some older bots might be build for older versions of discordjs, double check it before you proceed! - "ms": "^2.1.3" -// add more dependencies here if needed, install them using the "Install NodeJS packages from package.json" option in the console. - }, - "engines": { - "node": ">=18.0.0" - } -} -``` +3. Enter `discord.js` and other packages if desired. -3. Upload or create your `bot.js file`. This is the main file that your bot runs at startup. Depending on your setup, it may also be named `main.js` or `index.js` (make sure that it matches the name set in `package.json`). You can find examples and more information [here](https://discordjs.guide/creating-your-bot/main-file.html#running-your-application). +4. Scroll down to the "Main File" option and enter the name of the file your server should run at startup. For example `index.js` or `bot.js`. -4. Navigate back to the console and start the server. +5. Navigate to [the File Manager](https://client.falixnodes.net/server/filemanager?dir=%2F) and upload or your bot files. -5. Select `8` to install all the packages included in package.json. - -6. Wait for the server to restart. - -7. Navigate to the server settings page. - -8. Find the "Main bot file" option and set it to the name of your main bot file (this file will be ran at startup) - -9. Find the "NodeJS version" option and set it to the version of nodeJS required for your bot (most bots will be compatible with the latest version (nodejs24.1.0, at the time of writing) but doubble check it to be sure) - -10. Navigate back to the console and start the server. - -11. Select `1` to run the file set in the settings. - -> More information about creating a custom discord.js bot can be found [here](https://discordjs.guide/creating-your-bot/). +6. Navigate to [the console page](https://client.falixnodes.net/server/console) and start the server. \ No newline at end of file diff --git a/content/_posts/other/discord/2025-06-25-npm-install.md b/content/_posts/other/discord/2025-06-25-npm-install.md index 50fd215e..fb8adebe 100644 --- a/content/_posts/other/discord/2025-06-25-npm-install.md +++ b/content/_posts/other/discord/2025-06-25-npm-install.md @@ -4,7 +4,7 @@ title: "How To install nodejs packages" category: discordjs tags: General permalink: other/discord/general/npm-install -description: "Learn how to install Node.js packages on your server" +description: "Learn how to install and remove Node.js packages on your server" keywords: - keyword: discord.js matches: ["create", "host"] @@ -12,35 +12,25 @@ author: TWIXhunter --- +### Installing packages +1. Log in to the [Dashboard](https://client.falixnodes.net/) and choose a server within your server list. -1. Navigate to the File Manager and open the `package.json` file. It should look like the following example: +2. In the navigation menu, open the "Server Settings" category and navigate to [Settings](https://client.falixnodes.net/server/settings). -```json -{ - "main": "bot.js", // Set this to the main file of your bot (like bot.js, main.js or index.js) - "scripts": { - "start": "node bot.js" // Set this to the main file of your bot (like bot.js, main.js or index.js) - }, - "dependencies": { - "discord.js": "^14.14.1", - "ms": "^2.1.3" - }, - "engines": { - "node": ">=18.0.0" - } -} -``` +2. Go to the "Environment" tab and find the "Additional Node packages" variable. -2. Add the following entry inside the dependencies object: +3. Enter the packages you want to install, Use a space to separate between packages. -```json - "packagename": "^version.number.here" -``` +4. Navigate back to [the console page](https://client.falixnodes.net/server/console) and (re)start the server. -3. Ensure each entry (except the last one) ends with a `,` to maintain valid JSON syntax. -4. Save the file and return to the console. +### Removing packages +1. Log in to the [Dashboard](https://client.falixnodes.net/) and choose a server within your server list. -5. Start the server and select option `8` to install the Node.js packages. +2. In the navigation menu, open the "Server Settings" category and navigate to [Settings](https://client.falixnodes.net/server/settings). -6. Wait for the server to install or update all listed packages. +2. Go to the "Environment" tab and find the "Uninstall Node packages" variable. + +3. Enter the packages you want to remove, Use a space to separate between packages. + +4. Navigate back to [the console page](https://client.falixnodes.net/server/console) and (re)start the server. \ No newline at end of file From 8d7f8be6bb21f14621d0a4c3b0995d496cefb871 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:23:36 +0100 Subject: [PATCH 25/32] Rename for correct date. --- ...5-06-16-create-discordjs.md => 2026-02-20-create-discordjs.md} | 0 .../{2025-06-25-npm-install.md => 2026-02-20-npm-install.md} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename content/_posts/other/discord/{2025-06-16-create-discordjs.md => 2026-02-20-create-discordjs.md} (100%) rename content/_posts/other/discord/{2025-06-25-npm-install.md => 2026-02-20-npm-install.md} (100%) diff --git a/content/_posts/other/discord/2025-06-16-create-discordjs.md b/content/_posts/other/discord/2026-02-20-create-discordjs.md similarity index 100% rename from content/_posts/other/discord/2025-06-16-create-discordjs.md rename to content/_posts/other/discord/2026-02-20-create-discordjs.md diff --git a/content/_posts/other/discord/2025-06-25-npm-install.md b/content/_posts/other/discord/2026-02-20-npm-install.md similarity index 100% rename from content/_posts/other/discord/2025-06-25-npm-install.md rename to content/_posts/other/discord/2026-02-20-npm-install.md From 5a2503e8cf9def22d2ed682c006223263add01b7 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:04:40 +0100 Subject: [PATCH 26/32] "D"iscord bot Co-authored-by: Metro --- content/_categories/other/discord.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_categories/other/discord.md b/content/_categories/other/discord.md index f13a0ec1..b388f176 100644 --- a/content/_categories/other/discord.md +++ b/content/_categories/other/discord.md @@ -6,7 +6,7 @@ section: Discord category: Discord tags: - General -description: "Learn how to create and host a discord bot" +description: "Learn how to create and host a Discord bot" icon: "content/assets/images/categories/discord.svg" color: "#1b4db1" cat_order: 2 From d977c41c3b667e589b6911d09e33f009211a611e Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:06:49 +0100 Subject: [PATCH 27/32] Node.js Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-create-discordjs.md b/content/_posts/other/discord/2026-02-20-create-discordjs.md index 4e34d8a0..cbb10e80 100644 --- a/content/_posts/other/discord/2026-02-20-create-discordjs.md +++ b/content/_posts/other/discord/2026-02-20-create-discordjs.md @@ -32,7 +32,7 @@ For more information about discord.js or JavaScript, please refer to the officia 6. Complete the Billing steps (if needed) or press "Create My Server". -7. Select the server to go open the console and wait for nodeJS to be installed. +7. Select the server to go open the console and wait for Node.js to be installed. ## Setting up the Discord Bot From 6b2c0a8ef7ce117a75b8a15587604c50e824ca5e Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:07:16 +0100 Subject: [PATCH 28/32] Node.js and "D"ropdown Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-create-discordjs.md b/content/_posts/other/discord/2026-02-20-create-discordjs.md index cbb10e80..a0023cf4 100644 --- a/content/_posts/other/discord/2026-02-20-create-discordjs.md +++ b/content/_posts/other/discord/2026-02-20-create-discordjs.md @@ -38,7 +38,7 @@ For more information about discord.js or JavaScript, please refer to the officia 1. In the navigation menu, open the "Server Settings" category and navigate to [Settings](https://client.falixnodes.net/server/settings). -2. Go to the "Startup" tab and select the correct NodeJS version in the "Docker Image" Dropdown. +2. Go to the "Startup" tab and select the correct Node.js version in the "Docker Image" dropdown. 2. Go to the "Environment" tab and find the "Additional Node packages" variable. From 5968890f1ff5736515005a021c2ccde900b393e1 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:07:44 +0100 Subject: [PATCH 29/32] "I"nstall and "Node.js" Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-npm-install.md b/content/_posts/other/discord/2026-02-20-npm-install.md index fb8adebe..1f3b0f38 100644 --- a/content/_posts/other/discord/2026-02-20-npm-install.md +++ b/content/_posts/other/discord/2026-02-20-npm-install.md @@ -1,6 +1,6 @@ --- layout: post -title: "How To install nodejs packages" +title: "How To Install Node.js packages" category: discordjs tags: General permalink: other/discord/general/npm-install From 514ce1b17b00cd518a388b7b67220908a97eed4c Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:08:03 +0100 Subject: [PATCH 30/32] Update content/_posts/other/discord/2026-02-20-create-discordjs.md Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-create-discordjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-create-discordjs.md b/content/_posts/other/discord/2026-02-20-create-discordjs.md index a0023cf4..6f2e17c5 100644 --- a/content/_posts/other/discord/2026-02-20-create-discordjs.md +++ b/content/_posts/other/discord/2026-02-20-create-discordjs.md @@ -26,7 +26,7 @@ For more information about discord.js or JavaScript, please refer to the officia 3. Select a plan and enter a name and domain for your server. -4. Go to the "Applications" tab and select "Node.JS" +4. Go to the "Applications" tab and select "Node.js" 5. Click continue and choose the desired resources and location. From c071e9c792a405232c3122a12f414d60fafcb77f Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:08:31 +0100 Subject: [PATCH 31/32] lowercase after , Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-npm-install.md b/content/_posts/other/discord/2026-02-20-npm-install.md index 1f3b0f38..291a7e4d 100644 --- a/content/_posts/other/discord/2026-02-20-npm-install.md +++ b/content/_posts/other/discord/2026-02-20-npm-install.md @@ -19,7 +19,7 @@ author: TWIXhunter 2. Go to the "Environment" tab and find the "Additional Node packages" variable. -3. Enter the packages you want to install, Use a space to separate between packages. +3. Enter the packages you want to install, use a space to separate between packages. 4. Navigate back to [the console page](https://client.falixnodes.net/server/console) and (re)start the server. From 47142fd0f4eecfed7bf9c235d03d701c0e49a932 Mon Sep 17 00:00:00 2001 From: theTWIXhunter <147813783+theTWIXhunter@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:08:45 +0100 Subject: [PATCH 32/32] another lowercase after , Co-authored-by: Metro --- content/_posts/other/discord/2026-02-20-npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_posts/other/discord/2026-02-20-npm-install.md b/content/_posts/other/discord/2026-02-20-npm-install.md index 291a7e4d..cff49710 100644 --- a/content/_posts/other/discord/2026-02-20-npm-install.md +++ b/content/_posts/other/discord/2026-02-20-npm-install.md @@ -31,6 +31,6 @@ author: TWIXhunter 2. Go to the "Environment" tab and find the "Uninstall Node packages" variable. -3. Enter the packages you want to remove, Use a space to separate between packages. +3. Enter the packages you want to remove, use a space to separate between packages. 4. Navigate back to [the console page](https://client.falixnodes.net/server/console) and (re)start the server. \ No newline at end of file