Welcome to NaviMusic, a highly user-friendly music bot for Discord. Developed using Discord4J, NaviMusic offers a seamless music experience for your Discord server.
This section provides a step-by-step guide on how to get a copy of NaviMusic up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed on your machine:
- Java 21
- Maven
- Docker (optional)
Replace x.y with the version number of the last release. {nogui} is an optional argument to run the bot without the GUI.
First execute the bot with all the environment variables(DISCORD_TOKEN, SPOTIFY_CLIENT_ID, SPOTIFY_SECRET) Later follow the steps to get the YOUTUBE_OAUTH2_CODE Finally you need to configure your YOUTUBE_OAUTH2_CODE on the environment variables
- Set the following environment variables:
- DISCORD_TOKEN: Your Discord bot token
- SPOTIFY_CLIENT_ID: Your Spotify client ID
- SPOTIFY_SECRET: Your Spotify secret
- Run the bot
java -jar NaviMusic-x.y.jar {nogui}
- Complete the steps to get the YOUTUBE_OAUTH2_CODE
- Set the following environment variables:
- YOUTUBE_OAUTH2_CODE: Your Youtube OAuth2 code
- Run the bot again
java -jar NaviMusic-x.y.jar {nogui}
- Run the bot
java -jar NaviMusic-x.y.jar DISCORD_TOKEN=your_discord_token SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_SECRET=your_spotify_secret {nogui}
- Complete the steps to get the YOUTUBE_OAUTH2_CODE
- Run the bot again
java -jar NaviMusic-x.y.jar DISCORD_TOKEN=your_discord_token SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_SECRET=your_spotify_secret YOUTUBE_OAUTH2_CODE=your_youtube_oauth2_code {nogui}
- Pull the Docker image from Docker Hub:
docker pull anvian/navi-music
- Run the Docker container, passing your Discord, Spotify Client ID, and Spotify Secret tokens as arguments:
docker run anvian/navi-music -e DISCORD_TOKEN=your_discord_token SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_SECRET=your_spotify_secret
- Complete the steps to get the YOUTUBE_OAUTH2_CODE
- Run the Docker container again, passing your Youtube OAuth2 code as an argument:
docker run anvian/navi-music -e DISCORD_TOKEN=your_discord_token SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_SECRET=your_spotify_secret YOUTUBE_OAUTH2_CODE=your_youtube_oauth2_code
This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 For more details, see the LICENSE file.