From b8dd2359285dd8b4220d0e143b03dee1ee3aaf9f Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Fri, 4 Oct 2024 09:03:07 +0900 Subject: [PATCH] Update --- .gitignore | 1 + README.md | 15 ++++++++------- package.json | 2 +- ...schema.prisma => example.sqlite.schema.prisma} | 0 4 files changed, 10 insertions(+), 8 deletions(-) rename prisma/{schema.prisma => example.sqlite.schema.prisma} (100%) diff --git a/.gitignore b/.gitignore index d9f01b479..8bb45d402 100644 --- a/.gitignore +++ b/.gitignore @@ -535,5 +535,6 @@ Lavalink/application.yml Lavalink/Lavalink.jar prisma/migrations prisma/lavamusic.db +prisma/schema.prisma package-lock.json pnpm-lock.yaml diff --git a/README.md b/README.md index ff1aa3afc..54779f850 100644 --- a/README.md +++ b/README.md @@ -118,30 +118,31 @@ 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..schema.prisma` file to `schema.prisma` in `prisma` folder + +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). diff --git a/package.json b/package.json index 8a07ff30f..e7865863a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/appujet/lavamusic#readme", "devDependencies": { - "@biomejs/biome": "^1.9.2", + "@biomejs/biome": "^1.9.3", "@types/i18n": "^0.13.12", "@types/node": "^22.7.4", "@types/signale": "^1.4.7", diff --git a/prisma/schema.prisma b/prisma/example.sqlite.schema.prisma similarity index 100% rename from prisma/schema.prisma rename to prisma/example.sqlite.schema.prisma