Skip to content

AnirbanBiswasGamer/discord-youtube-to-mp3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-youtube-to-mp3

Looking for a code to download your music ? This fully open source code is made for you!

  • No advertising
  • Simple and fast
  • No API key required

âš¡ Installation

Run on Repl.it

Well, let's start by downloading the code. Go to the folder config then the file bot.json. For the bot to be able to start, please complete the file with your credentials as follows :

{
    "token": "XXX",
    "prefix": "!"
}

Reminder :

  • token, the token of the bot available on the Discord developers section.
  • prefix, the prefix that will be set to use the bot.

To install modules, go to the console and type this : npm i.

To start the bot :

#With Node
node main.js

#With pm2
pm2 start main.js --name "YoutubeDownloader"

If you see this : I'm ready !, it means that your robot has started up !

🎵 Commands

download, download music by name.
linkdownload, download music by YouTube link.

Examples (download) :

#YouTube name
<prefix>dl PETIT BISCUIT - Sunset Lover

#Spotify URL
<prefix>dl https://open.spotify.com/track/3WRQUvzRvBDr4AxMWhXc5E?si=iJP3hgxbRoqiqiOnnfBR7w

Example (linkdownload) :

#YouTube URL
<prefix>ldl https://youtu.be/wuCK-oiE3rM

I'm not responsible if a music doesn't want to download or if your IP is blacklisted on YouTube â›”

This is used with discord.js, discord-ytdl-core, spotify-url-info and scrape-yt.

If you have any questions/problems do not hesitate to open a issue ! Don't forget to add a star to the project or leave a little mark of this Github on your bot if you use the source code !

About

A simple code used to download music by YouTube in mp3 format 🔥

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%