-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13834f7
commit b7ba649
Showing
12 changed files
with
98 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Installation | ||
|
||
## Prerequisites | ||
|
||
Ensure you have the following before setup: | ||
|
||
- **Discord Token**: Obtain from the [Discord Developer Portal](https://discord.com/developers/applications). | ||
- **Node.js**: Version 20 or higher. Download [here](https://nodejs.org/en/download/). | ||
- **NPM**: Comes with Node.js. | ||
- **FFmpeg or Avconv**: Required for media transcoding. Download [FFmpeg](https://ffmpeg.org/download.html) or install via npm: `npm i ffmpeg-static` | ||
|
||
## Configuration | ||
|
||
1. **DISCORD_TOKEN**: Bot token for Discord API. | ||
2. **CLIENT_ID**: Bot application ID to register slash commands. | ||
3. **DEV_GUILD**: ID of the development server. | ||
4. **DEV_IDS**: Comma-separated list of developer IDs. | ||
5. **SUPPORT_SERVER**: Link to the discord support server. | ||
|
||
### Setup Steps | ||
|
||
1. **Create `.env` File**: In the root directory, create `.env`. | ||
2. **Use `.env.sample`**: Copy and replace placeholders with your values. | ||
3. **Save as `.env`**: Ensure all variables are correctly filled. | ||
|
||
## Local Installation | ||
|
||
1. **Clone the Repository**: `git clone https://github.com/LakhindarPal/discord-player-bot && cd discord-player-bot` | ||
2. **Install Dependencies**: `npm install` | ||
3. **Fill the `.env` File**: Ensure all configurations are set as describe above. | ||
4. **Register Slash Commands**: `npm run register` | ||
5. **Run the Bot**: `npm start` | ||
|
||
## Docker Installation | ||
|
||
1. **Fill the `.env` File**: Ensure all configurations are set as described above. | ||
2. **Pull Docker Image**: `docker pull lakhindarpal/discord-player-bot:latest` | ||
3. **Run Docker Container**: `docker run --env-file .env lakhindarpal/discord-player-bot:latest` | ||
4. **Register Slash Commands**: `docker exec -it <container_id> npm run register` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Docs | ||
|
||
## Index | ||
|
||
- [Commands](COMMANDS.md) | ||
- [Installation](INSTALLATION.md) | ||
- [Prerequisites](INSTALLATION.md#prerequisites) | ||
- [Configuration](INSTALLATION.md#configuration) | ||
- [Local Installation](INSTALLATION.md#local-installation) | ||
- [Docker Installation](INSTALLATION.md#docker-installation) | ||
- [Contributing](CONTRIBUTING.md) | ||
|
||
## Links | ||
|
||
[![Docker Hub](https://img.shields.io/badge/Docker-Hub-blue?style=for-the-badge&logo=docker)](https://hub.docker.com/r/lakhindarpal/discord-player-bot) | ||
[![Support](https://img.shields.io/badge/Discord-Support-blue?style=for-the-badge&logo=discord)](https://discord.gg/8yaJBZBQTA) | ||
|
||
--- | ||
|
||
[Return to index](../README.md) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters