A discord bot to download music PDFs, MP3's, and MIDI's from musescore.com
Made possible using the Command-line tool of dl-librescore. Go give them a ⭐
View on Docker Hub
- Just run
docker run -e DISCORD_TOKEN="YourBotToken" -itd --restart unless-stopped --name musecord nelsondane/musecord
, inserting your discord bot token. - The bot is now running. You can view the logs with
docker logs musecord
to ensure it's working.
Make sure python3-pip is installed
- Clone this repository and cd into it
- Run
pip install -r requirements.txt
- Add
DISCORD_TOKEN=YourBotToken
to your.env
file - Run
python musecord.py
Once the bot is invited to your server, you can check that it's running by sending !ping
, to which the bot should respond with pong
To download your desired files, just send a message of this format in discord:
!musecord <musescore.com url> <filetype>
For example, to download the PDF of this piano cover, you'd run:
!musecord https://musescore.com/user/5345596/scores/2796891 pdf
After a few seconds, the bot will send the PDF in the discord chat! Note: the first run may take a few seconds since the bot needs to download the initial program. After that it should be a lot faster!
Supported filetypes:
- mp3
- midi