this plugin allow you to play song,album,playlist,artist url and search result from apple music
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"})
Feel free to join our discord server, Give us suggestions and advice about errors and new features. with ❤️ by Paras .