A specialized Discord bot, developed using NestJS and the Discord.js ecosystem, designed for playing music on my Discord server with my friends, Feel free to reuse and/or improve it for your own needs. It leverages the @discord-nestjs/core framework and discord-player for seamless integration and efficient music playback. The bot supports playback from various platforms such as YouTube, Spotify, Apple Music, SoundCloud, and more.
- Node.js (v22.x or higher)
- FFmpeg installed and available in your system's PATH
- Clone the repository to your local machine.
- Install dependencies with our favorite package manager.
- Create an
.envfile in the root directory with your Discord bot token and other necessary configurations.
- Run
npm run startto start the bot. - Invite the bot to your Discord server using its OAuth2 URL.
- Use the bot's commands (e.g.,
!play <query|url>) to interact with it.
To run the tests, execute the following command:
npm run test:watch
... and that's it! Happy coding! 🤘