-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Mester Sosuke edited this page Jun 27, 2024
·
1 revision
Bedlessbot uses Bun and is incompatible with Node. Therefore, you first have to install Bun.
Follow the instructions at Bun Installation Guide.
-
Clone the repository:
git clone https://github.com/MesterMan03/Bedlessbot.git cd Bedlessbot -
Install dependencies:
bun install
-
Set up the database:
bun run tools/setup_db.ts
This will create an empty
data.dbSQLite database file in the root directory with the correct tables set up. -
Set up .env:
Create a
.envfile by following.env.example. -
Set up config:
Finally, set up
src/config.ts. The file already exists, so you just need to fill in the values. -
Set up secret:
If you want to use the machine-learning API, you must provide the secret you generated for the API. Create a
secretfile in the root directory and paste the secret in it (it should be a hexadecimal string).
Useful links: