Skip to content

Commit

Permalink
Merge pull request #741 from hwangsihu/main
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
LucasB25 authored Oct 6, 2024
2 parents 3e13e86 + c29668a commit 45e42b9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,30 +118,33 @@ cd lavamusic
npm i
```

4. Copy the .env.example file to .env and fill in all required values.
Note: Optional values ​​are noted as comments in the settings.
4. Copy the `.env.example` file to `.env` and fill in all required values

5. Generate the Prisma client:
5. Copy the `example.<The data source you want to use>.schema.prisma` file to `schema.prisma` in `prisma` folder
Note: If you want to use sqlite, skip this step.
If you are using a different data source, don't forget to fill in the `DATABASE_URL` value in `.env`.

6. Generate the Prisma client:

```bash
npm run db:push
```

6. Run the migrations (Only if you want to migrate your database):
7. Run the migrations (Only if you want to migrate your database):

```bash
npm run db:migrate
```

7. Run the bot:
8. Run the bot:

If you are using Windows, click run.bat on Windows explorer.
Note: You can also run `run.bat` to easily run the bot on Windows.

```bash
npm start
```

8. Invite the bot to your server:
9. Invite the bot to your server:

Generate an invite link for your bot and invite it to your server using the [Discord Developer Portal](https://discord.com/developers/applications) or [Permissions Calculator](https://discordapi.com/permissions.html).

Expand Down

0 comments on commit 45e42b9

Please sign in to comment.