Skip to content

hegdeadithyak/PlayMusic

Repository files navigation

Discord Music Bot 🎵

This repository contains the code for a Discord music bot that allows users to play songs from YouTube in voice channels.

Discord Music Bot

Currently Working on

  • Functionality of Queue,edit,skip
  • Play songs using playlists

Table of Contents

Features

  • Play songs from YouTube URLs
  • Join and leave voice channels
  • Control playback (pause, resume, stop)

Requirements

  • Node.js and npm (or yarn)
  • A Discord bot token

Installation

  1. Clone this repository.

  2. Install the required dependencies:

    npm install

Note: Ensure you have npm or yarn installed on your system before running this command.

Usage Run the bot using:

node PlayMusic.cjs

Use code with caution. Invite the bot to your Discord server.

Join a voice channel.

Use the !play command to play a song from YouTube.

Example:

!play https://www.youtube.com/watch?v=dQw4w9WgXcQ

Output

Future Works

  • Play Songs Based on user input
  • Play Songs according to user's Mood
  • Functionality for Queue of Songs,Skip,Pause

Contributing

Feel free to fork this repository and contribute your improvements!

Output

2024-03-24.23-21-40.mp4

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Playing music according to your mood in Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published