This is a Discord music bot that allows users to play music in a voice channel using commands.
- Play music from YouTube, Spotify, ALL Sources
- Pause and resume playback
- Skip to the next song in the queue
- Show the current song and queue
- Leave the voice channel
To use the bot, invite it to your server and join a voice channel. Then, use the following commands in a text channel:
/play <song name>
: Plays the specified song from YouTube/pause
: Pauses the playback/resume
: Resumes the playback/skip
: Skips to the next song in the queue/queue
: Shows the current queue/nowplaying
: Shows the current song/leave
: Leaves the voice channel- ETC
To use this bot on your own server, you will need to follow these steps:
- Clone this repository to your local machine using
git clone https://github.com/pirzada-ahmadfaraz/Discord-MusicBot.git
.h - Install the required dependencies by running
npm install
in the root directory. - Create a new application and bot account in the Discord Developer Portal.
- Copy the
TOKEN
for your bot and save it tobotconfig.js
- Invite the bot to your server using the following link:
https://discord.com/oauth2/authorize?client_id=YOUR_BOT_CLIENT_ID&scope=bot&permissions=2205281600
whereYOUR_BOT_CLIENT_ID
is the client ID of your bot, which can be found in the Developer Portal. - Start the bot by running
node index.js
in the root directory of this project.
Contributions are always welcome! If you find a bug or want to add a new feature, please create an issue or submit a pull request.