4 Self Hosting
Jonny_Bro (Nikita) edited this page 2024-06-10 13:22:50 +05:00

Self Hosting

Before We Start

To host JaBa yourself you will need this:

Note

I'm not sure about memory requirements because right now JaBa can consume up to several GBs of RAM when restart is not scheduled!

Edit Configs

  1. Copy config.sample.js to config.js.
  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

Unfortunately, dashboard-core package that is used for Dashboard is private for now, I'll open it when it's done!

Custom Emojis

JaBa uses AtlantaBot's emojis. You need to join and invite your bot to their server to gain access to them or you can make your own.

Installing Dependencies

  1. For your bot to support music you need to install FFmpeg - sudo apt update && sudo apt install ffmpeg.
  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.
Get PM2 here
To run JaBa with PM2 use this command pm2 start --name bot-name index.js