Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poru-applemusic

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poru-applemusic

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

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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 .

FAQs

Package last updated on 03 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc