Skip to content

Apple Music Discord Rich Presence that uses JXA (JavaScript for Automation) and AppleScript to fetch album details

License

Notifications You must be signed in to change notification settings

doujincafe/jxa-am-rich-presence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jxa-apple-music Discord Rich Presence Client

Apple Music Rich Presence for macOS. Supports Intel and ARM based macs.

Usage

  • Download the latest release here.
  • Run jxa-apple-music on your terminal.

If you want to start it on startup or run it as a daemon, You can create a launchd daemon. More information can be found here.

Configuration

Upon initial start, A config.json file will be created. There you can customise the client on how you wish. It includes features like album art display and custom discord assets.

To enable image upload, I would recommend you to use imgur service. Get your client id. While setting up, ensure that the OAUTH2 CALLBACK is set to: http://localhost:53918/callback to ensure that the client is able to receive the authentication tokens required for uploading the asset.

Finally, change these parts to:

{
  "uploader": {
    "enabled": true,
    "use": "imgur",
    "imgur": {
      "clientId": "<YOUR CLIENT ID HERE>"
    }
  }
}

Upon the startup of the application, it will open your browser to allow the application to access your data. This happens because uploading assets is not anonymized. Feel free to fork your own changes that allows anonymous asset uploading.

For custom discord application, create your app on discord here. Upload your assets and modify these section:

{
  "discord": {
    "clientId": "<YOUR DISCORD APPLICATION ID>",
    "assets": {
      "large": {
        "key": "<YOUR LARGE IMAGE ASSET KEY NAME>",
        "text": "<CUSTOM DESCRIPTION>"
      },
      "small": {
        "playing": {
          "key": "<YOUR PLAYING IMAGE ASSET KEY NAME>",
          "text": "<CUSTOM DESCRIPTION>"
        },
        "paused": {
          "key": "<YOUR PAUSED IMAGE ASSET KEY NAME>",
          "text": "<CUSTOM DESCRIPTION>"
        },
        "stopped": {
          "key": "<YOUR STOPPED IMAGE ASSET KEY NAME>",
          "text": "<CUSTOM DESCRIPTION>"
        }
      }
    }
  }
}

After making changes, save the configuration and restart the application.

Self Compilation

Requirements

How to build

  • pnpm install
  • pnpm run build

License

This project is licensed under MIT

About

Apple Music Discord Rich Presence that uses JXA (JavaScript for Automation) and AppleScript to fetch album details

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 50.5%
  • C# 49.5%