mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
Update wiki (finally)
parent
7abe93cb19
commit
fe60b73ad0
4 changed files with 39 additions and 3 deletions
4
Home.md
4
Home.md
|
@ -1 +1,3 @@
|
|||
Welcome to the JaBa wiki!
|
||||
# Welcome to JaBa' wiki
|
||||
|
||||
1. [How to self-host JaBa](https://github.com/JonnyBro/JaBa/wiki/Self-Hosting)
|
36
Self-Hosting.md
Normal file
36
Self-Hosting.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Self Hosting
|
||||
|
||||
## Before we start
|
||||
|
||||
To self-host JaBa you will need this:
|
||||
|
||||
* Some free time.
|
||||
* Machine that runs Linux (I use Ubuntu myself) capable of running Node.js applications.
|
||||
* [Node.js v18.15.0 or above](https://nodejs.org/).
|
||||
* [Git](https://git-scm.com).
|
||||
* [pnpm](https://pnpm.io/).
|
||||
* [MongoDB v5.0 or above](https://www.mongodb.com/docs/v5.0/tutorial/install-mongodb-on-ubuntu/).
|
||||
|
||||
## Edit configs
|
||||
|
||||
1. Copy `config.sample.js` to `config.js`.
|
||||
2. Open `config.js` and go through it, everything is commented.
|
||||
* 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 later when it is 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. `sudo apt update`.
|
||||
2. For your bot to support music you need to install FFmpeg - `sudo apt install ffmpeg`.
|
||||
3. `pnpm install`.
|
||||
4. `node .`.
|
||||
|
||||
> [!NOTE]
|
||||
> You can use PM2, it will manage your bot's process and run the bot automatically if machine is restarted.
|
||||
> [Get PM2 here](https://pm2.keymetrics.io/)
|
|
@ -1 +0,0 @@
|
|||
Добро пожаловать на вики JaBa!
|
|
@ -1 +0,0 @@
|
|||
скоро будет...
|
Loading…
Reference in a new issue