{"_id":"@arahiko-ayami/spotify","_rev":"4-cec3846086906c68671222a5d2791dae","name":"@arahiko-ayami/spotify","dist-tags":{"latest":"0.4.2"},"versions":{"0.4.1":{"name":"@arahiko-ayami/spotify","version":"0.4.1","description":"A DisTube custom plugin for supporting Spotify.","main":"index.js","typings":"index.d.ts","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","prettier":"prettier --write **/*.{js,ts,json,yml,yaml}","npm:publish":"npm publish"},"repository":{"type":"git","url":"git+https://github.com/distubejs/spotify.git"},"keywords":["distube","plugin","spotify","discord","music"],"author":{"name":"Skick"},"license":"MIT","bugs":{"url":"https://github.com/distubejs/spotify/issues"},"homepage":"https://github.com/distubejs/spotify#readme","devDependencies":{"@commitlint/cli":"^13.1.0","@commitlint/config-conventional":"^13.1.0","@discordjs/opus":"^0.5.3","commitlint":"^13.1.0","discord.js":"github:discordjs/discord.js","distube":"^3.0.0-beta.32","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.1","lint-staged":"^11.1.1","prettier":"^2.3.2","typescript":"^4.3.5"},"dependencies":{"spotify-uri":"^2.2.0","spotify-url-info":"^2.2.3"},"peerDependencies":{"distube":"3||^3.0.0-0"},"lint-staged":{"*.js":["prettier --write","eslint"],"*.{json,yml,yaml,ts}":["prettier --write"]},"gitHead":"4589d9b09e19f86923de1dd29262112a819ec71a","_id":"@arahiko-ayami/spotify@0.4.1","_nodeVersion":"14.17.4","_npmVersion":"7.20.3","dist":{"integrity":"sha512-5ekHEKqFJG96/p6HqQoa9esYvmnjyiuRrj3CiEHssK9lXiTDUBT+UibPUXuhd8CkXmJIIxK6nrySSxmqoqDC3A==","shasum":"436bbf2ae91536ef13c715f6b12bfb6ab3688c59","tarball":"https://registry.npmjs.org/@arahiko-ayami/spotify/-/spotify-0.4.1.tgz","fileCount":5,"unpackedSize":8313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBg5fCRA9TVsSAnZWagAAK3AP/A+q8kcXRiup4ArMGKZJ\nzvI/y2zlDeRxCAYrrSJKXHitX18vDZmyHB5Asgn0kPJEeRN69B1W/9fIHN0j\nlVdleInm6JDUGidcmBVE7LlzyV88SEIb0VDHPb7ZdzfviOJM9R0pOqokiuG/\ndxU40eKo6NYCl37vP1oUgRNbGHMOwhK95+redvubMlyH9hj0IR366rrziVJw\n7SmWJqetETLTVEd/3koo4Zz1QOmmQGtfCJARrylF3o1955UU2wYIuU/WOM3L\n1Dn3MF/DFmTf62VZFPcpTOytvGk5+StvNLKVgjGIzUgnoyIq6C9c+WoFoiy5\neivCfTy3iieA297WyKzNW6qE8DwXAY9bwn8pSA+gRYJpXdxZMBI+moAihL/c\nnk/n+TNEll0/6/FTJtLiqlw2Gdf48W5PmGWZsR0JmFPtldfJvWjxcFm5KvId\nFVzwRt+vtI/ARrFdaY0jtEb1IOI8OFT8HbGhmCltBo4XvfR59CiRknrMXFUh\nQVfJX7VGn6WsFeAprEetwD0/fbMTw8vi1q1Hx61bX17UbtkAojrbGJ2Ftm55\nnDXywoB/Kbd5T9hbOdnFjY86+e5xMwukN1YIP8+yyTsueyvxaktIDUhavdOf\nwbrPY1IH51xJ39qv7n+gMVCqhunZgxrOL+WXisR9pGlR9Pke36Ioyo1HeDM9\nV8jk\r\n=xG+m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4MclxBhNsiZG+9D0hOTc87RBE5MQdsRVxLr3+4aNwmgIgW9Ba6ENXKI1R4Mm4TEEjLyKwdapIG2dIyEfzoS6zbdY="}]},"_npmUser":{"name":"arahiko-ayami","email":"zinang7@gmail.com"},"directories":{},"maintainers":[{"name":"arahiko-ayami","email":"zinang7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spotify_0.4.1_1627786847239_0.096965347949036"},"_hasShrinkwrap":false,"deprecated":"This package is no longer supported bescause the original author @Skick rewrote the original package and merged beta and alpha branch, if you are using DisTube <= beta33 || alpha18, you can keeping use this package"},"0.4.2":{"name":"@arahiko-ayami/spotify","version":"0.4.2","description":"A DisTube custom plugin for supporting Spotify.","main":"index.js","typings":"index.d.ts","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","prettier":"prettier --write **/*.{js,ts,json,yml,yaml}","npm:publish":"npm publish"},"repository":{"type":"git","url":"git+https://github.com/distubejs/spotify.git"},"keywords":["distube","plugin","spotify","discord","music"],"author":{"name":"Skick"},"license":"MIT","bugs":{"url":"https://github.com/distubejs/spotify/issues"},"homepage":"https://github.com/distubejs/spotify#readme","devDependencies":{"@commitlint/cli":"^13.1.0","@commitlint/config-conventional":"^13.1.0","@discordjs/opus":"^0.5.3","commitlint":"^13.1.0","discord.js":"github:discordjs/discord.js","distube":"^3.0.0-beta.32","eslint":"^7.31.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.1","lint-staged":"^11.1.1","prettier":"^2.3.2","typescript":"^4.3.5"},"dependencies":{"spotify-uri":"^2.2.0","spotify-url-info":"^2.2.3"},"peerDependencies":{"distube":"3||^3.0.0-0"},"lint-staged":{"*.js":["prettier --write","eslint"],"*.{json,yml,yaml,ts}":["prettier --write"]},"gitHead":"4589d9b09e19f86923de1dd29262112a819ec71a","_id":"@arahiko-ayami/spotify@0.4.2","_nodeVersion":"14.17.4","_npmVersion":"7.20.3","dist":{"integrity":"sha512-eG/VjD+BVGgxzBl9NWQoKA3rvQCj9bTPYPcxQ/bFqmOutbK7RhN7Tlan8yLVXdANyUgbSCFfR292zzrWGpdKlA==","shasum":"3ff133705c18adb13f756e4a642a3f04ab756335","tarball":"https://registry.npmjs.org/@arahiko-ayami/spotify/-/spotify-0.4.2.tgz","fileCount":5,"unpackedSize":8364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBhQXCRA9TVsSAnZWagAAxyUP/2ONxCv9gy006/rGZsqU\ng86R0E30XD/O9CyCGXivL0nNYa/ecudj7ZZ64j5Rwfa0jqte8Ao/NRIKT+KY\nIUNUjUFPzPug+jh4R5sNTLinnKcbi6qUCDlHvmT0uTD1tGkurFyrQ0+z6gTv\ntayHYYzvc8q3hi3aFen/e/8chhAFGqs98d+0WnDPEm5KPAFb9htGZ152Wgct\nmy961MuRHoq4AtPR71+l6vJcXXrChaQPfK3okJxaU6MMFAJvex8UPjAtpQo4\nYKvvPPHi6ERfc91t6opfZPvxoVBMh8TllGs3gNJUjGlk5Q8xQN46PTUxkKZG\ntnRbbqi+YQr2Yr8tl2Ci7CcIc1vj3tZB4AU6tURldzf20zatmJofKLlTH2yx\nNltnjKvE/DNVSHmIYEPK3N2kKU7i5+OdEx7gJmMJE/AUcjA0I8N8MNLIv8eO\nqF4ElHE8YuT2NYpIqWXxANR07PfCcSyDD8o3seingx0v8B1AQBQtfVvII4f7\n1VzH5lVH5f0C8HSmhf+s4UIjhjhLCjgqRvKeC0ACX6VCslc42bFj0+B3eKXA\nprMJxjz0ABS1DWvc070JSbg6qqH0nY5QKd5e5qbSRmG+X85KjyDwPMy8hO4z\njY7inTeF6IcAClHXalVUFdMndn905S8vjL6D7OXjAcvx19HYv7zHwLDGPqwV\nRZg1\r\n=zJOC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKti8ZsdQNukIs7VjOTBz8ieadexJIJsaAFsrwly18mAiEAtVKIky3AfnEEwZImfV/6dMkfLbNIPYI1VCknYOXqo4M="}]},"_npmUser":{"name":"arahiko-ayami","email":"zinang7@gmail.com"},"directories":{},"maintainers":[{"name":"arahiko-ayami","email":"zinang7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spotify_0.4.2_1627788310824_0.03389948969198309"},"_hasShrinkwrap":false,"deprecated":"This package is no longer supported bescause the original author @Skick rewrote the original package and merged beta and alpha branch, if you are using DisTube <= beta33 || alpha18, you can keeping use this package"}},"time":{"created":"2021-08-01T03:00:47.178Z","0.4.1":"2021-08-01T03:00:47.391Z","modified":"2022-04-04T15:14:54.798Z","0.4.2":"2021-08-01T03:25:11.000Z"},"maintainers":[{"name":"arahiko-ayami","email":"zinang7@gmail.com"}],"description":"A DisTube custom plugin for supporting Spotify.","homepage":"https://github.com/distubejs/spotify#readme","keywords":["distube","plugin","spotify","discord","music"],"repository":{"type":"git","url":"git+https://github.com/distubejs/spotify.git"},"author":{"name":"Skick"},"bugs":{"url":"https://github.com/distubejs/spotify/issues"},"license":"MIT","readme":"# @arahiko-ayami/spotify\n\nA DisTube custom plugin for supporting Spotify URL. Forked from @distube/spotify and upgraded to support new Distube >= v3.0.0alpha/beta\n\n## Status: beta\n\nRequires DisTube v3.0.0-beta/alpha\n\n# Feature\n\nThis plugin grabs the songs on Spotify then searches on YouTube and play with DisTube.\n\n# Installation\n\n```sh\nnpm install @arahiko-ayami/spotify\n```\n\n# Usage\n\n```js\nconst Discord = require(\"discord.js\");\nconst DisTube = require(\"distube\");\nconst SpotifyPlugin = require(\"@arahiko-ayami/spotify\");\nconst client = new Discord.Client();\nconst distube = new DisTube(client, {\n\tsearchSongs: 10,\n\temitNewSongOnly: true,\n\tplugins: [new SpotifyPlugin({ parallel: true })],\n});\n\n// Now distube.play can play spotify url.\n\nclient.on(\"message\", (message) => {\n\tif (message.author.bot) return;\n\tif (!message.content.startsWith(config.prefix)) return;\n\tconst args = message.content\n\t\t.slice(config.prefix.length)\n\t\t.trim()\n\t\t.split(/ +/g);\n\tconst command = args.shift();\n\tif (command === \"play\") distube.play(message, args.join(\" \"));\n});\n```\n\n## Documentation\n\n### SpotifyPlugin([options])\n\n-   `options.parallel`: Default is `true`. Whether or not searching the playlist in parallel.\n-   `options.emitPlaySongAfterFetching`: Default is `false`. Emit `playSong` event before or after fetching all the songs.\n    > If `false`, DisTube plays the first song -> emits `playSong` events -> fetches all the rest\\\n    > If `true`, DisTube plays the first song -> fetches all the rest -> emits `playSong` events\n","readmeFilename":"README.md"}