Updated Self Hosting (markdown)

Jonny_Bro (Nikita) 2024-06-10 13:22:50 +05:00
parent 07a5143e6c
commit c7e49227f4

@ -8,7 +8,7 @@ To host JaBa yourself you will need this:
* Machine that runs Linux (I use Ubuntu myself) capable of running Node.js applications.
* [Node.js v18.15.0 or above](https://nodejs.org/) (You can use [NVM](https://github.com/nvm-sh/nvm) to manage your Node installations).
* [Git](https://git-scm.com).
* [pnpm](https://pnpm.io/).
* [pnpm](https://pnpm.io/) or [npm](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager).
* [MongoDB v5.0 or above](https://www.mongodb.com/docs/v5.0/tutorial/install-mongodb-on-ubuntu/).
> [!NOTE]
@ -17,7 +17,7 @@ To host JaBa yourself you will need this:
## Edit Configs
1. Copy `config.sample.js` to `config.js`.
2. Open `config.js` and go through it, everything is commented.
2. Open `config.js` and configure your bot, everything is documented.
* apiKeys are for any API key if you want to implement something yourself.
> [!IMPORTANT]
@ -30,8 +30,8 @@ JaBa uses AtlantaBot's emojis. You need to join and invite your bot to their ser
## Installing Dependencies
1. For your bot to support music you need to install FFmpeg - `sudo apt update && sudo apt install ffmpeg`.
2. `pnpm install`.
3. `node .`.
2. `pnpm install` or `npm install`.
3. `pnpm start` or `npm run start`.
> [!NOTE]
> You can use PM2, it will manage your bot's process and run the bot automatically if machine is restarted.\