Skip to content
This repository was archived by the owner on Jul 26, 2020. It is now read-only.
/ Discord-MusicBot Public archive

Plays Music from Youtube Links pasted in Discord. Can play from the list of youtube links pasted in file.

Notifications You must be signed in to change notification settings

NMahesh20/Discord-MusicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies
npm install discord.js @discordjs/opus ytdl-core --save
npm install request
npm install yt-search

Install ffmpeg.
https://www.wikihow.com/Install-FFmpeg-on-Windows

Or 
npm install ffmpeg-static

<Bot works perfectly. The possibility of crashing is low. But it may...>
First Run getPlaylist.js or getLikedMusic.js. For getting YouTube Links from the user's Spotify Account.
----------------------------

config.json
Configuration for bot. 
First create a bot in Discord. Need help in creating bot, Check this link https://gabrieltanner.org/blog/dicord-music-bot
""Parameters""
Prefix: It is for the bot to understand that it's his commands
Token: You need to create the bot then copy it's token. 
BotName: The name that you have gave to your bot.


bot.js
It's the bot script. The error will be logged.
""Parameters""
file: Location of the file that contains all the YouTube links. (Required for the readLinks feature of the bot)

getLikedMusic.js
It's the script to get the user's liked musics.
""Parameters""
user_id: Spotify User ID.
token: Spotify OAuth token.
fileLoc: The location and file name where you want to save the links.

getPlaylist.js
It's the script to get the spotify playlist and will run the google search to get the youtube links and then store it.
""Parameters""
user_id: Spotify User ID.
token: Spotify OAuth token.
fileLoc: The location and file name where you want to save the links.
Reference for this code: API University

About

Plays Music from Youtube Links pasted in Discord. Can play from the list of youtube links pasted in file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published