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.
To download you need the following
-
Install the packages in
requirements.txt
bypip install -r requirements.txt
-
Set the following environment
DISCORD_KEY
SPOTIFY_CLIENT_SECRET
SPOTIFY_CLIENT_ID
-
Run using
python bot.py
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.
The tech stack used is stated below.