Skip to content

CatenaScientiarum/MusicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicBot

This code is not very optimized for local operation, be prepared to put it on hosting MusicBot for Discord This is a simple music bot for Discord that can play tracks from Spotify via YouTube search integration. It supports basic controls like playing, skipping, and repeating tracks.

Features Play music from Spotify links. Queue management. Replay track multiple times. Skip current track. Libraries and Frameworks Used discord.py: For interacting with the Discord API and handling voice channels. yt-dlp: For downloading audio from YouTube. spotipy: For interacting with the Spotify API. Requirements Python 3.8 or higher discord.py: For creating and managing the bot. yt-dlp: For extracting YouTube audio. spotipy: For interacting with Spotify.

Commands !play : Adds a song to the queue from a Spotify link. !replay : Repeats the current track the specified number of times. !skip: Skips the current track and plays the next one in the queue. Usage Invite the bot to your server. Join a voice channel. Use !play to play a song from Spotify. Control playback with !replay and !skip. Important Notes Before uploading the bot code to GitHub, remove any hardcoded sensitive information such as: Spotify Client ID and Client Secret. Discord Bot Token. Use environment variables or configuration files to store sensitive data securely. License This project is licensed under the MIT License - see the LICENSE.md file for details.

About

MusicBot for Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages