All Projects → Darkempire78 → Music-Discord-Bot

Darkempire78 / Music-Discord-Bot

Licence: GPL-3.0 license
A music Discord bot with more than 30+ commands which allows to play music on your server efficiently. Supports Youtube, Spotify, Deezer and Soundcloud links. Skips intros and blanks in the music with Sponsorblock.

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to Music-Discord-Bot

lavamusic
lavalink music bot base in erela.js and discord.js v13
Stars: ✭ 210 (+268.42%)
Mutual labels:  spotify, discord-music-bot, discord-bot, lavalink, lavalink-music, lavalink-musicbot, music-bot-discord
NanoSpace
Erela.js & Discord.js@v14 (Prefix Commands!)
Stars: ✭ 59 (+3.51%)
Mutual labels:  discord-music-bot, discord-bot, lavalink, lavalink-music, lavalink-musicbot, music-bot-discord
noteblock
A open-source music bot based on lavalink.
Stars: ✭ 93 (+63.16%)
Mutual labels:  spotify, discord-music-bot, soundcloud, lavalink, lavalink-musicbot, music-bot-discord
discord-lavalink-music-bot
This is music bot for discord made with erelajs, lavalink, discordjs v13-dev
Stars: ✭ 34 (-40.35%)
Mutual labels:  spotify, discord-music-bot, discord-bot, lavalink, lavalink-musicbot
lavalink-music-bot-2021
Advance Discord Lavalink Music Bot With Spotify and Buttons Help Menu || Best Music Quality || Radio Commands
Stars: ✭ 26 (-54.39%)
Mutual labels:  spotify, deezer, lavalink, lavalink-musicbot
plumeria
🤖 A Discord chat bot with rich data piping between commands
Stars: ✭ 35 (-38.6%)
Mutual labels:  spotify, discord-bot, discord-py
ypc
Convert text/spotify/deezer albums/playlists to youtube urls and audio/video files.
Stars: ✭ 17 (-70.18%)
Mutual labels:  spotify, youtube-dl, deezer
emojis
An emoji management bot for Discord.
Stars: ✭ 18 (-68.42%)
Mutual labels:  discord-bot, discord-py, discordbot
blade-player
Android music player that plays from local library, Spotify or Deezer
Stars: ✭ 67 (+17.54%)
Mutual labels:  spotify, soundcloud, deezer
Botify
Discord bot that plays Spotify tracks and YouTube videos or any URL including Soundcloud links and Twitch streams
Stars: ✭ 86 (+50.88%)
Mutual labels:  spotify, soundcloud, discord-bot
Alexi5
A Discord Bot built using discordJS. Started as a joke for spamming memes. Branch "v2" is currently being used for active development. Hosted on Heroku.
Stars: ✭ 19 (-66.67%)
Mutual labels:  discord-music-bot, youtube-dl, discordbot
muffon
Music streaming browser
Stars: ✭ 491 (+761.4%)
Mutual labels:  spotify, soundcloud, deezer
LenoxBot
🖥️ LenoxBot is a Discord bot that offers many cool new features to your Discord server!
Stars: ✭ 218 (+282.46%)
Mutual labels:  discord-music-bot, discord-bot, discordbot
A41SLBOT
All For One Bot is an open-source discord server bot built for All For One SL™ discord server.
Stars: ✭ 83 (+45.61%)
Mutual labels:  spotify, discord-music-bot, soundcloud
EarTensifier
Powerful Discord music bot in over 80,000 servers. Supports playback from Youtube, Soundcloud, and Spotify.
Stars: ✭ 112 (+96.49%)
Mutual labels:  discord-music-bot, soundcloud, discord-bot
SparkV
🤖⚡ | The most POWERFUL multipurpose chat/meme bot that will boost the activity in your server.
Stars: ✭ 24 (-57.89%)
Mutual labels:  discord-music-bot, discord-bot, discordbot
multipurpose-bot
a multipurpose discord bot made with dbd.js
Stars: ✭ 32 (-43.86%)
Mutual labels:  discord-bot, discordbot, music-bot-discord
Shoukaku
A featureful stable wrapper for Lavalink
Stars: ✭ 140 (+145.61%)
Mutual labels:  discord-music-bot, lavalink, lavalink-music
Discord Music Bot
Discord Music Bot. Play, Playlist, Welcome and Administrative commands.
Stars: ✭ 18 (-68.42%)
Mutual labels:  discord-music-bot, lavalink, lavalink-musicbot
Laffey
An adorable lavalink discord music bot that has a lot of features inside it.
Stars: ✭ 82 (+43.86%)
Mutual labels:  discord-music-bot, lavalink, lavalink-musicbot

Music Discord Bot

A Discord bot with more than 30+ commands which allows to play music on your server efficiently. Supports Youtube, Spotify, Deezer and Soundcloud links. Skips intros and blanks in the music with Sponsorblock (optional).

Installation

  • create a discord application / bot here
  • Install all dependencies : pip install -r requirements.txt.
  • Download Lavalink.
  • Install Java 11+
  • Create a MySQL database and use the Scripts/generateDatabase.sql file to create the table.
  • Edit configuration example.json :
{
    "token": "", // Your bot token
    "prefix": "?", // Your prefix
    
    "playlistLimit": "15", // Optional - Defaults to 15 if not provided 0 is unlimited
    "sponsorblock": true, // True if you want to skip intros and blanks in the music

    // Spotify => https://developer.spotify.com/dashboard/ 
    "spotifyClientId": "", // Your Spotify ID (OPTIONAL : Spotify links support)
    "spotifyClientSecret": "", // Your Spotify secret (OPTIONAL : Spotify links support)
    
    "MySQLHost": "", // Your MySQL host
    "MySQLLogin": "", // Your MySQL login
    "MySQLPasword": "", // Your MySQL password
    "MySQLDatabase": "" // Your MySQL database
}
  • Rename it to configuration.json.
  • Edit emojis.json

Finally, host the bot and invite it to your own server.

Run the bot

  • Run Lavalink.jar (from Lavalink) with java -jar Lavalink.jar
    • Note: you will likely want to use a config file in the same directory as Lavalink.jar to control its settings
  • Run the bot python3 main.py

Run in docker

  • skip all but the first installation steps above
  • install docker
  • install docker-compose
  • copy the configuration.docker.json file to ./configuration.json
  • fill in your discord bot token
    • optionally the spotify client id/secret && dbl tokens
  • run docker-compose build
  • run docker-compose up -d db
  • run docker-compose up -d

Note: In theory you can skip docker-compose up -d db and just run docker-compose up -d but the timing of the db startup and running of the generateDatabase.sql on initial startup can sometimes cause the music bot to fail to start so its best to just start the db first to give it enough time

Docker running / debugging tips

  • you can run docker-compose logs to view logs for all services
  • you can run docker-compose logs <service> eg: docker-compose logs musicbot to see the logs for a specific service (look in the compose file for the service names)
  • you can run docker-compose stop to stop the music bot / db / lavalink containers
  • you can run docker-compose start to start the music bot / db / lavalink after stopping

Features

  • Play music from YouTube
  • Support links from YouTube, Spotify, Deezer and Soudcloud
  • Support YouTube lives
  • Support playlists from Spotify, Deezer, Soundcloud and YouTube
  • Playlist system
  • Sponsorblock integration to skip intros and blanks in the music
  • Many commands
  • Complex queue commands

Preview

Commands

?play <Url/Query> : Search on youtube and play the music.
?search <Query> : Search a song on youtube.
?nowplaying : Display data about the current song.
?join : Add the bot to your voice channel.
?leave : Remove the bot of your voice channel.
?pause : Pause the current song.
?resume : Resume the current song.
?volume <0-100> : Change the bot's volume.
?queue : Display the queue.
?shuffle : Shuffle the queue.
?move <IndexFrom> <IndexTo> : Move a song in the queue.
?remove <Index> : Remove the song with its index.
?removedupes : Remove all duplicates song from the queue.
?leavecleanup : Remove absent user's songs from the queue.
?clear : Clear the queue.
?replay : Replay the current song.
?reload : Reload the current song.
?loop : Enable or disable the loop mode.
?loopqueue : Enable or disable the loop queue mode.

?playlist add <Url> : Add a track to your playlist.
?playlist remove <Index> : Remove a track to your playlist.
?playlist display : Display playlist's songs.
?playlist load : Add the whole playlist to the queue.

?stats : Display the bot's stats.
?support : Give a link to join the support server.
?invite : Give a link to invite the bot.
?vote : Give the Top.gg link to vote for the bot.
?help : Display the help.

?logout : Stop the bot process.

Discord Bots

Soon

Project : https://github.com/Darkempire78/Music-Discord-Bot/projects/2

Discord

Join the Discord server !

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is under GPLv3.

Advice :

You should use Discord Tools to code your Discord bots on Visual Studio Code easier. Works for Python (Discord.py), Javascript (Discord.js) and Java (JDA). Generate template bot and code (snippets).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].