{"_id":"@cocoa-discord/music-module","_rev":"3-31f4013e794673b5730a9aedbe7f4c54","name":"@cocoa-discord/music-module","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@cocoa-discord/music-module","version":"1.0.0","keywords":["discord-bot","music-bot","discordjs","cocoa-discord"],"author":{"name":"Leomotors"},"license":"MIT","_id":"@cocoa-discord/music-module@1.0.0","maintainers":[{"name":"leomotors","email":"npongtanyavichai@gmail.com"}],"homepage":"https://github.com/Leomotors/cocoa-discord#readme","bugs":{"url":"https://github.com/Leomotors/cocoa-discord/issues"},"dist":{"shasum":"0639536c634fb45646506e57dba9d7be27be89ed","tarball":"https://registry.npmjs.org/@cocoa-discord/music-module/-/music-module-1.0.0.tgz","fileCount":51,"integrity":"sha512-mXV/KNFEfFM+dtyvMeThatbJsJh6lfQmyHfCdzbzzJsL1BIeeICZCsks9nzay4q/6aJdpI4g9ItUXVBoibRdIQ==","signatures":[{"sig":"MEQCIACN1btDVqw+UHS/S1lihi23R/QvU3zN/crnqPq28kduAiBx2C9KohsimmjNcna5SEjewzpTsPUwWVOged6jaSQ4wA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cocoa-discord%2fmusic-module@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":72555},"main":"dist/index.js","type":"module","_from":"file:cocoa-discord-music-module-1.0.0.tgz","scripts":{"bot":"pnpm build && node tests/bot.js","docs":"pnpm lm-config && typedoc","lint":"eslint src","test":"node tests/index.js","build":"pnpm lm-config && tsc","format":"eslint src --fix"},"typings":"./dist/index.d.ts","_npmUser":{"name":"leomotors","email":"npongtanyavichai@gmail.com"},"_resolved":"/tmp/48e468d9c95784c63bfaf96b470e4610/cocoa-discord-music-module-1.0.0.tgz","_integrity":"sha512-mXV/KNFEfFM+dtyvMeThatbJsJh6lfQmyHfCdzbzzJsL1BIeeICZCsks9nzay4q/6aJdpI4g9ItUXVBoibRdIQ==","repository":{"url":"git+https://github.com/Leomotors/cocoa-discord.git","type":"git"},"_npmVersion":"9.6.7","description":"discord.js music bot that can be run standalone or as a module for other bots","directories":{},"_nodeVersion":"18.17.1","dependencies":{"uuid":"^9.0.1","chalk":"^5.3.0","tslib":"^2.6.2","play-dl":"^1.9.6","discord.js":"^14.13.0","cocoa-discord":"^3.0.0","@discordjs/voice":"^0.16.0","microsoft-cognitiveservices-speech-sdk":"^1.32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"16.3.1","eslint":"8.49.0","rimraf":"5.0.1","typedoc":"0.25.1","prettier":"3.0.3","typescript":"5.2.2","@types/uuid":"9.0.4","@discordjs/opus":"0.9.0","@leomotors/scripts":"3.1.0","libsodium-wrappers":"0.7.13","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-prettier":"5.0.0","@typescript-eslint/parser":"6.7.2","@typescript-eslint/eslint-plugin":"6.7.2","@trivago/prettier-plugin-sort-imports":"4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/music-module_1.0.0_1695381773203_0.3238386686084622","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@cocoa-discord/music-module","version":"1.1.0","keywords":["discord-bot","music-bot","discordjs","cocoa-discord"],"author":{"name":"Leomotors"},"license":"MIT","_id":"@cocoa-discord/music-module@1.1.0","maintainers":[{"name":"leomotors","email":"npongtanyavichai@gmail.com"}],"homepage":"https://github.com/Leomotors/cocoa-discord#readme","bugs":{"url":"https://github.com/Leomotors/cocoa-discord/issues"},"dist":{"shasum":"a9a107fda956faeae195315ccdd24b30996000db","tarball":"https://registry.npmjs.org/@cocoa-discord/music-module/-/music-module-1.1.0.tgz","fileCount":51,"integrity":"sha512-YefSf15tbh0RT28UQFJxVm/peSH/ngpvT40cYtp/tei8FoLKSlaBIqj7ek1WHipDwLkDEcVHcm1T7kk6GwtsYg==","signatures":[{"sig":"MEQCIFERygvZ5g+C4c+ZWAZMWDwRIYqqWlSaYKh7BRIB05ioAiADRrOoGqLbbIlETLcaFfOj8ic3IwWYS4fScSb4bOBmRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cocoa-discord%2fmusic-module@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":72462},"main":"dist/index.js","type":"module","_from":"file:cocoa-discord-music-module-1.1.0.tgz","scripts":{"bot":"pnpm build && node tests/bot.js","docs":"pnpm lm-config && typedoc","lint":"eslint src","test":"node tests/index.js","build":"pnpm lm-config && tsc","format":"eslint src --fix"},"typings":"./dist/index.d.ts","_npmUser":{"name":"leomotors","email":"npongtanyavichai@gmail.com"},"_resolved":"/tmp/28391195ce6ecf0c6c2a23eba8454040/cocoa-discord-music-module-1.1.0.tgz","_integrity":"sha512-YefSf15tbh0RT28UQFJxVm/peSH/ngpvT40cYtp/tei8FoLKSlaBIqj7ek1WHipDwLkDEcVHcm1T7kk6GwtsYg==","repository":{"url":"git+https://github.com/Leomotors/cocoa-discord.git","type":"git"},"_npmVersion":"9.6.7","description":"discord.js music bot that can be run standalone or as a module for other bots","directories":{},"_nodeVersion":"18.17.1","dependencies":{"uuid":"^9.0.1","chalk":"^5.3.0","tslib":"^2.6.2","play-dl":"^1.9.6","discord.js":"^14.13.0","cocoa-discord":"^3.0.0","@discordjs/voice":"^0.16.0","microsoft-cognitiveservices-speech-sdk":"^1.32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"16.3.1","eslint":"8.50.0","rimraf":"5.0.1","typedoc":"0.25.1","prettier":"3.0.3","typescript":"5.2.2","@types/uuid":"9.0.4","@discordjs/opus":"0.9.0","@leomotors/scripts":"3.1.0","libsodium-wrappers":"0.7.13","eslint-plugin-import":"2.28.1","eslint-config-prettier":"9.0.0","eslint-plugin-prettier":"5.0.0","@typescript-eslint/parser":"6.7.2","@typescript-eslint/eslint-plugin":"6.7.2","@trivago/prettier-plugin-sort-imports":"4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/music-module_1.1.0_1695455807267_0.6366856418132312","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@cocoa-discord/music-module","version":"2.0.0","keywords":["discord-bot","music-bot","discordjs","cocoa-discord"],"author":{"name":"leomotors"},"license":"MIT","_id":"@cocoa-discord/music-module@2.0.0","maintainers":[{"name":"leomotors","email":"npongtanyavichai@gmail.com"}],"homepage":"https://github.com/leomotors/cocoa-discord#readme","bugs":{"url":"https://github.com/leomotors/cocoa-discord/issues"},"dist":{"shasum":"8b0bb2e078a771d977a8faef74abd688dc1720ce","tarball":"https://registry.npmjs.org/@cocoa-discord/music-module/-/music-module-2.0.0.tgz","fileCount":55,"integrity":"sha512-nMr86XW6WIn0ldjScZvjHz4dYHg6ZGALykhJjXawAZhDnFNECTwnjQHeyA8t5haGK5Txi52LkbfK8i4RP+9syQ==","signatures":[{"sig":"MEYCIQCS9w4mFXOEQqxSjfzwyWTG1VcJY6NOmMSvbdzNLQZpzgIhAK6u9Phw8/DyIbA5t1kab+jE3vjk/9GCht06uUau9g5E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cocoa-discord%2fmusic-module@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85217},"main":"dist/index.js","type":"module","_from":"file:cocoa-discord-music-module-2.0.0.tgz","scripts":{"bot":"pnpm build && node tests/bot.js","docs":"pnpm lm-config && typedoc","lint":"eslint src","test":"vitest run && node tests/index.js","build":"pnpm lm-config && tsc","format":"eslint src --fix","test:cov":"vitest run --coverage"},"typings":"./dist/index.d.ts","_npmUser":{"name":"leomotors","email":"npongtanyavichai@gmail.com"},"_resolved":"/tmp/4ff6aef915747002f870384c76d1eb05/cocoa-discord-music-module-2.0.0.tgz","_integrity":"sha512-nMr86XW6WIn0ldjScZvjHz4dYHg6ZGALykhJjXawAZhDnFNECTwnjQHeyA8t5haGK5Txi52LkbfK8i4RP+9syQ==","repository":{"url":"git+https://github.com/leomotors/cocoa-discord.git","type":"git"},"_npmVersion":"10.2.4","description":"discord.js music bot that can be run standalone or as a module for other bots","directories":{},"_nodeVersion":"20.11.1","dependencies":{"uuid":"^9.0.1","chalk":"^5.3.0","tslib":"^2.6.2","play-dl":"^1.9.7","discord.js":"^14.14.1","cocoa-discord":"^3.1.0","@discordjs/voice":"^0.16.1","microsoft-cognitiveservices-speech-sdk":"^1.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"16.4.5","eslint":"8.57.0","rimraf":"5.0.5","vitest":"1.3.1","typedoc":"0.25.9","prettier":"3.2.5","typescript":"5.3.3","@types/uuid":"9.0.8","@discordjs/opus":"0.9.0","@leomotors/scripts":"3.1.0","libsodium-wrappers":"0.7.13","@vitest/coverage-v8":"1.3.1","eslint-plugin-import":"2.29.1","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.1.3","@typescript-eslint/parser":"7.1.0","@typescript-eslint/eslint-plugin":"7.1.0","@trivago/prettier-plugin-sort-imports":"4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/music-module_2.0.0_1709318783094_0.5730554328202289","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@cocoa-discord/music-module","version":"3.0.0","description":"discord.js music bot that can be run standalone or as a module for other bots","main":"dist/index.js","typings":"./dist/index.d.ts","type":"module","repository":{"type":"git","url":"git+https://github.com/leomotors/cocoa-discord.git"},"author":{"name":"leomotors"},"license":"MIT","publishConfig":{"access":"public"},"devDependencies":{"@discordjs/opus":"^0.9.0","@leomotors/scripts":"^3.1.0","@trivago/prettier-plugin-sort-imports":"^4.3.0","@types/uuid":"^10.0.0","@typescript-eslint/eslint-plugin":"^8.8.0","@typescript-eslint/parser":"^8.8.0","@vitest/coverage-v8":"^2.1.2","dotenv":"^16.4.5","eslint":"^8.57.1","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","libsodium-wrappers":"^0.7.15","prettier":"^3.3.3","rimraf":"^6.0.1","typedoc":"^0.26.8","typescript":"^5.6.2","vitest":"^2.1.2"},"dependencies":{"@discordjs/voice":"^0.17.0","@distube/ytdl-core":"^4.14.4","chalk":"^5.3.0","discord.js":"^14.16.3","microsoft-cognitiveservices-speech-sdk":"^1.40.0","play-dl":"^1.9.7","tslib":"^2.7.0","uuid":"^10.0.0","cocoa-discord":"^3.2.0"},"keywords":["discord-bot","music-bot","discordjs","cocoa-discord"],"scripts":{"build":"pnpm lm-config && tsc","lint":"eslint src","format":"eslint src --fix","test":"vitest run && node tests/index.js","test:cov":"vitest run --coverage","bot":"pnpm build && node tests/bot.js","docs":"pnpm lm-config && typedoc"},"_id":"@cocoa-discord/music-module@3.0.0","bugs":{"url":"https://github.com/leomotors/cocoa-discord/issues"},"homepage":"https://github.com/leomotors/cocoa-discord#readme","_integrity":"sha512-BRPfGaI7Srd7xOjlDCdd8tHknVZTei6Pn4yNAV4oBQdIGpsDwYLBGOyvTJ6Rwi5Zcvx1860MyBQjKep/7yVQZg==","_resolved":"/tmp/87395fb0e2fe5d499d89d4e3a2fd2b86/cocoa-discord-music-module-3.0.0.tgz","_from":"file:cocoa-discord-music-module-3.0.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-BRPfGaI7Srd7xOjlDCdd8tHknVZTei6Pn4yNAV4oBQdIGpsDwYLBGOyvTJ6Rwi5Zcvx1860MyBQjKep/7yVQZg==","shasum":"faa93b43a93a0431e1f585fb9cce5161d2578b92","tarball":"https://registry.npmjs.org/@cocoa-discord/music-module/-/music-module-3.0.0.tgz","fileCount":55,"unpackedSize":85811,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cocoa-discord%2fmusic-module@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgM5EPXWk829hjlBWjLI6VPSLhG7CEiNYbwDIAdeKe4AiAB+IEmVQV27n7V06y85a9R0pKwNMHLQ6l2XFopuGF+Uw=="}]},"_npmUser":{"name":"leomotors","email":"npongtanyavichai@gmail.com"},"directories":{},"maintainers":[{"name":"leomotors","email":"npongtanyavichai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/music-module_3.0.0_1728064973584_0.32625792830163625"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-22T11:22:53.087Z","modified":"2024-10-04T18:02:54.405Z","1.0.0":"2023-09-22T11:22:53.433Z","1.1.0":"2023-09-23T07:56:47.415Z","2.0.0":"2024-03-01T18:46:23.281Z","3.0.0":"2024-10-04T18:02:53.925Z"},"bugs":{"url":"https://github.com/leomotors/cocoa-discord/issues"},"author":{"name":"leomotors"},"license":"MIT","homepage":"https://github.com/leomotors/cocoa-discord#readme","keywords":["discord-bot","music-bot","discordjs","cocoa-discord"],"repository":{"type":"git","url":"git+https://github.com/leomotors/cocoa-discord.git"},"description":"discord.js music bot that can be run standalone or as a module for other bots","maintainers":[{"name":"leomotors","email":"npongtanyavichai@gmail.com"}],"readme":"# @cocoa-discord/music-module\n\n[![](https://img.shields.io/npm/v/@cocoa-discord/music-module.svg?maxAge=3600)](https://www.npmjs.com/package/@cocoa-discord/music-module)\n[![](https://img.shields.io/npm/dt/@cocoa-discord/music-module.svg?maxAge=3600)](https://www.npmjs.com/package/@cocoa-discord/music-module)\n[![](https://github.com/leomotors/cocoa-discord/actions/workflows/caffemocha.yml/badge.svg)](https://github.com/leomotors/cocoa-discord/actions)\n\nMusic Bot components extracted from [harunon.js](https://github.com/CarelessDev/harunon.js)\n\n## How to use\n\nThis package has 2 parts, the underlying mechanics and the part that consume it.\n\nYou likely only want to import complete Music Cog which is compatible to [cocoa-discord](https://github.com/leomotors/cocoa-discord)\n\nSee Example at [tests/bot.js](./tests/bot.js)\n\nApart from that, if you can understand the code [src/voice.ts](src/voice.ts),\nyou can directly interact with api underneath, all of them is public.\n\n### Minimal Usage\n\n- Clone this repository, build the package and run tests/bot.js\n\n- Adjust and add some codes to personalize the bot\n\n### Advanced Usage\n\n- Import music module to existing bot that use [Cocoa Discord](https://github.com/leomotors/cocoa-discord)\n  (See [cminusminus](https://github.com/leomotors/cminusminus) for minimal example or [Waifu Bot](https://github.com/leomotors/waifu-bot) for sized bot)\n\n## Prerequisites\n\n- node 18 (16 gone eol :skull:)\n\n- **IMPORTANT** [Encoding Libraries](https://www.npmjs.com/package/@discordjs/voice#dependencies)\n  (This library does not ship these encoding libraries, so you can freely decide which one to install)\n\n## ✨Features\n\n- play from YouTube\n\n- queue\n\n- pause / resume\n\n- Loop\n\n- Remove from Queue and Clear\n\n- Search with beautiful embeds\n\n## 🖼️ Highlight\n\n- ✨ Search Feature\n\n![](./images/search1.png)\n\n![](./images/search2.png)\n\n_Note: Picture from previous release, lazy to update_\n\n## Note\n\n- This module has its cog named \"Music\", be sure to not creating a duplicate name\n\n- Some edge cases like user invoke command without being in voice channel might not be handled yet\n","readmeFilename":"README.md"}