riffy-applemusic
v1.0.4
Published
Apple Music plugin for Riffy.js (https://github.com/riffy-team/riffy)
Readme
Apple Music plugin for riffy. This plugin allows you to resolve and play Apple Music tracks, albums, and playlists inside your Discord music bot.
Features
- Supports Apple Music song, album, and playlist links
- Fetches metadata (title, artist, artwork, duration) from the iTunes API
- Lightweight and requires no API keys or tokens
- Works seamlessly with your existing riffy setup
Installation
npm install riffy-deezerUsage
const { Riffy } = require("riffy")
const { AppleMusic } = require("riffy-applemusic")
client.riffy = new Riffy(client, nodes, {
send: (payload) => {
const guild = client.guilds.cache.get(payload.d.guild_id);
if (guild) guild.shard.send(payload);
},
defaultSearchPlatform: "spsearch",
restVersion: "v4",
plugins: [new AppleMusic()]
});Supported Links
- Track:
https://music.apple.com/us/song/song-name/1743852427 - Album:
https://music.apple.com/us/album/album-name/1440891396 - Playlist:
https://music.apple.com/us/playlist/playlist-name/pl.u-123456789
Example Resolved Track
For the link:
https://music.apple.com/us/song/love-me-not/1743852427This plugin resolves to:
Love Me Not by Ravyn LenaeLicense
This project is licensed under the MIT License
