Skip to content

Python bot for streaming music to discord via lavalink

Notifications You must be signed in to change notification settings

JustinTether/discord-music-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-music-py

Python bot for streaming music to discord via lavalink

In order to run this you'll need to have a version of JRE lord save our souls and create a few files. I've included an application.yml which should outline how the Lavalink.jar app should function.

You can get the lavalink jre here -- This should live in the same root folder as this repo (Where application.yml lives) It can be run with a simple command like: java -jar Lavalink.jre

You'll also need to create two things: a spotify developer application, which can be done here -- You'll need your client_id and your client_secret Place those into a spotify_secrets.json file alongside your settings.json file. I'll include some example json for this purpose:

{
    "client_id": "xxxxxxxxxxxxxxxxxxxxxx",
    "secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

As well, you'll need a discord bot and it's token, the token can just be slapped into a txt file called token.txt for now -- In the future i'd be preferable to load this through env var as well

Once that's finished and you've added the bot, you should only need to run python ./discordmusic.py

About

Python bot for streaming music to discord via lavalink

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages