From 627c7286b9d7f35e25dba65e7d40305451efd61d Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 6 Jul 2023 12:04:24 +0200 Subject: [PATCH] Updated README.md with new instructions for setup --- README.md | 5 +++-- package.json | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4b90761..95094ee 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,6 @@ A free music and audio bot for Discord. No locked functionality, and open source 1. Install [Node.js](https://nodejs.org/en/download/) v18.16 LTS. 2. Install [FFmpeg](https://ffmpeg.org/download.html) latest release build. 3. Install dependencies with `npm install`. -4. Configure token for Discord bot in `config.json`. -5. Run `npm start` to start the bot. +4. Configure token and clientId for Discord bot in `config.json`. You need to have a Discord bot application from Discord [developer portal](https://discord.com/developers/applications) first. +5. Deploy slash commands via Discord API by running `npm run deploy`. +6. Run `npm start` to start the bot. diff --git a/package.json b/package.json index 3c5ed68..de88e21 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "⚡ A free music and audio bot for Discord.", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node ./index.js", + "deploy": "node ./deploy-commands.js" }, "author": "", "license": "ISC",