Easy-to-install Discord bot for playing music from YouTube in voice channels. Enjoy seamless music playback with a simple setup.
- Play music from YouTube by providing a YouTube URL or playlist.
- Stop the music playback.
- Get help on how to use the bot in voice mode.
In the upcoming updates, the following features will be added:
- Pause and resume playback functionality.
- Skip to the next music track.
- Integration of slash commands for easier interaction.
To install and run the bot locally on your PC or host it on a server, follow these steps:
-
Clone the repository or download the source code.
-
Install the required dependencies by running the following command: npm install
-
Replace
'YOUR_DISCORD_BOT_TOKEN_HERE'
with your Discord bot token in the code. -
Start the bot by running the following command:
node index.js
-
Invite the bot to your Discord server and ensure it has the necessary permissions to join voice channels.
To use the bot, follow these commands:
-
!play <YouTube URL>
: Play the music or playlist from the provided YouTube URL in the voice channel you are currently in. -
!stopplay
: Stop the music playback. -
!helpplay
: Get information on how to use the bot in voice mode and commands usage.
Please note the following:
- You must be in a voice channel for the bot to join and play music.
- Adjust the bot's volume by right-clicking on the bot in the voice channel.
For any questions or support, feel free to contact me.
Enjoy the music!