A music bot for Discord built using DisTube and discord.js.
DisTube Music Bot is a Discord bot that allows you to play music from various sources like YouTube, Spotify, SoundCloud, Deezer, Tidal, Apple Music, and direct links. It leverages the powerful DisTube library and discord.js to provide a seamless music experience on your Discord server.
- Play music from YouTube, Spotify, SoundCloud, Deezer, Tidal, Apple Music, and direct links.
- High-quality audio playback.
- Simple and easy-to-use commands.
-
Clone the repository:
git clone https://github.com/LakhindarPal/distube-music-bot.git cd distube-music-bot
-
Install dependencies:
Make sure you have Node.js and npm installed. Then, run:
npm install
-
Set up environment variables:
Create a
.env
file in the root directory and add your Discord bot token:DISCORD_TOKEN=your_bot_token_here
-
Install FFmpeg:
Ensure that FFmpeg is installed on your system. You can download it from here.
-
Start the bot:
npm start
-
Invite the bot to a Discord server:
Generate an invite link for your bot from the Discord Developer Portal and invite it to your server.
-
Join a voice channel:
Connect to a voice channel where you want the bot to play music.
-
Use the play command:
/play <URL or search query>
The bot will join the voice channel and start playing the requested music.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
If you have any questions or need support, feel free to open an issue on GitHub.