Skip to content

Thakuma07/Discord-Music-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🎵 Discord Music Bot

A simple Discord music bot built with Python, discord.py, and yt-dlp that allows users to play music directly from YouTube into Discord voice channels using text commands.

This project is designed as a learning-friendly music bot with a basic queue system and easy setup.


🚀 Features

  • 🔊 Play audio from YouTube using search keywords
  • 📜 Basic queue system for songs
  • ⏭️ Skip the currently playing song
  • 🤖 Command-based interaction (!play, !skip)
  • 🎧 Automatically joins and plays music in voice channels

🛠️ Tech Stack

  • Python 3.8+
  • discord.py
  • yt-dlp
  • FFmpeg
  • asyncio

📦 Requirements

Make sure you have the following installed:

  • Python 3.8 or higher
  • FFmpeg (must be added to system PATH)

Install Python dependencies:

pip install discord.py yt-dlp

⚙️ Setup & Installation

1️⃣ Clone the repository

git clone https://github.com/Thakuma07/Discord-Music-Bot.git
cd Discord-Music-Bot

2️⃣ Create a Discord Bot

  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
  3. Open the Bot section from the sidebar
  4. Click Add Bot and confirm
  5. Copy the Bot Token (keep this secret)
  6. Enable the following settings:
    • ✅ Message Content Intent
    • ✅ Server Members Intent (optional)
  7. Set required bot permissions:
    • Connect
    • Speak
  8. Generate an invite link using the OAuth2 → URL Generator
    • Scopes: bot
    • Bot Permissions: Connect, Speak
  9. Use the generated URL to invite the bot to your server

3️⃣ Install dependencies

Make sure Python 3.8 or higher is installed, then run:

pip install discord.py yt-dlp

About

A simple and customizable Discord music bot built in Python that allows you to play music in your Discord server directly from voice channels.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages