Skip to content

This is a discord bot written in Python using Discord Rewrite API. This has the ability to play music on Voice Channels from YouTube

Notifications You must be signed in to change notification settings

asadukashif/discord-music-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Music Bot

This a music bot that allows the users in a channel to request songs from YouTube by either keywords or URL directly. The music can then be manipulated by commands.


Installation

To download you need the following

  • FFMPEG

  • Python

  • Install the packages in requirements.txt by

      pip install -r requirements.txt 
    
  • Set the following environment

    • DISCORD_KEY
    • SPOTIFY_CLIENT_SECRET
    • SPOTIFY_CLIENT_ID
  • Run using

      python bot.py 
    

Gallery

  • Join

    join

  • Play

    play

  • Pause

    pause

  • Resume

    Resume

  • Queue

    Queue

  • Now

    Now

  • Skip

    Skip

  • Volume

    Volume

  • Seek

    Seek

Commands

The following commands can be used with either ! or .

  • join : Joins a voice channel where the caller resides or a specific channel if the name is provided as an argument.
  • play : Plays a particular song from the keywords or URL entered or if already playing adds it to the queue.
  • pause : Pauses a the currently playing.
  • resume : Resumes a the currently playing.
  • now : Shows the currently playing song.
  • seek : Move to a certain second-point of the song.
  • skip : Skips the current song and moves to the next one in queue or if provided the song index, skips to that song directly.
  • volume : Shows the current volume or if provided a certain value, changes the volume to that value (max is 200).
  • queue : Displays the current queue.
  • shuffle : Randomly shuffles the queue.
  • clear : Clears the queue.
  • stop : Stops the currently playing song and leaves the voice channel.
  • queuespotify : Provided the quantity and URL of your spotify playlist, can fetch that quantity of songs from your playlist and add them to queue.

TechStack

The tech stack used is stated below.


About

This is a discord bot written in Python using Discord Rewrite API. This has the ability to play music on Voice Channels from YouTube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages