poru-applemusic
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Apple Music Plugin for poru

this plugin allow you to play song,album,playlist,artist url and search result from apple music

How to use it?

here basic example usage

const {AppleMusic} = require("poru-applemusic");
const { Client, GatewayIntentBits } = require("discord.js");
const { Poru } = require("poru");
const nodes = [
  {
    name: "local-node",
    host: "localhost",
    port: 2333,
    password: "youshallnotpass",
  },
];

const appleMusic = new AppleMusic({
countryCode:"us",
imageWidth:900,
imageHeight:600

})

const PoruOptions = {
  library:"discord.js",
  plugins:[appleMusic]
};

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.GuildVoiceStates,
    GatewayIntentBits.MessageContent,
  ],
});
client.poru = new Poru(client, nodes, PoruOptions);


//example to search query in apple music
const response = await client.poru.resolve({query:"tum hi aana",source:"applemusic",requster:"discord user object"})

//example with apple music url
const response = await client.poru.resolve({query:"apple music url here",requster:"discord user object"})

example response (search result)

don't worry about empty string of track,poru will manage it

image

image

Need Help?

Feel free to join our discord server, Give us suggestions and advice about errors and new features. with ❤️ by Paras .

Readme

Keywords

none

Package Sidebar

Install

npm i poru-applemusic

Weekly Downloads

3

Version

1.2.0

License

ISC

Unpacked Size

26.9 kB

Total Files

18

Last publish

Collaborators

  • parasdocs