Music Box is a music player widget in a Discord message.
Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0. More details: https://sponsor.ajay.app/
Features:
Install required software.
Clone this repository and navigate to project directory
git clone https://github.com/borisliao/mbox.git
cd mbox/
Install Poetry. To learn more on how to install or use Poetry, check out the Poetry documentation here.
# For OSX / Linux / Bash on Windows install instructions
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
# For Windows PowerShell install instructions
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
Install project dependencies.
poetry install
Activate virtual environment.
poetry shell
Install pre-commit to identify issues in code before committing changes.
pre-commit install
Follow FFmpeg Installation guide.
Install Opus dependency.
brew install opus
.sudo apt-get install libopus
.Follow Setting up Bot on Discord Developer Portal guide.
Invite bot to server.
To run the application.
# For Windows users
python main.py
# For MacOS/Linux users
python3 main.py
To run the application in debug mode.
# For Windows users
python main.py debug
# For MacOS/Linux users
python3 main.py debug
Instead of running the commands above in the terminal, you can use the Run and Debug feature already built into VSCode. The following profiles has been included within the project: Normal Mode, Debug Mode
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.