musicpack / mbox

Music Box is a music player widget in a Discord message.
7 stars 2 forks source link
hacktoberfest music python

Music Box

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/

image

Features:

Setup/Installation

  1. Install required software.

  2. Clone this repository and navigate to project directory

    git clone https://github.com/borisliao/mbox.git
    cd mbox/
  3. 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 -
  4. Install project dependencies.

    poetry install
  5. Activate virtual environment.

    poetry shell
  6. Install pre-commit to identify issues in code before committing changes.

    pre-commit install
  7. Follow FFmpeg Installation guide.

  8. Install Opus dependency.

    • For MacOS users, the easiest way is to setup Homebrew and then do a brew install opus.
    • For Linux/Unix users, use sudo apt-get install libopus.
  9. Follow Setting up Bot on Discord Developer Portal guide.

  10. Invite bot to server.

Usage

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

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT