diff --git a/CHANGELOG.md b/CHANGELOG.md index e9f7a12..877fe02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,20 @@ Previous changelog before 4.0.605 may not be noted here. -## [6.1.902] - 2023-02-29 +## [6.2.911] - 2024-03-02 + +- feat: `@cocoa-discord/music-module` v2 + +## [6.1.902] - 2024-02-29 - chore: bump deps - fix: change voice encoder to make it works in docker -## [6.1.901] - 2023-02-04 +## [6.1.901] - 2024-02-04 - fix: correct sveltekit handler for urami -## [6.1.900] - 2023-02-04 +## [6.1.900] - 2024-02-04 - chore: bump deps - refactor: no longer require api key for golden frame (See new Golden Frame Web) diff --git a/apps/bot/package.json b/apps/bot/package.json index 68bed46..6701f2e 100644 --- a/apps/bot/package.json +++ b/apps/bot/package.json @@ -19,7 +19,7 @@ "typescript": "5.3.3" }, "dependencies": { - "@cocoa-discord/music-module": "1.1.0", + "@cocoa-discord/music-module": "2.0.0", "@discordjs/opus": "0.9.0", "@discordjs/voice": "0.16.1", "@waifu-bot/auth": "workspace:*", diff --git a/apps/bot/src/commands/music.slash.ts b/apps/bot/src/commands/music.slash.ts index a6a374e..4d70d28 100644 --- a/apps/bot/src/commands/music.slash.ts +++ b/apps/bot/src/commands/music.slash.ts @@ -1,4 +1,3 @@ -import { createEmbedStyle } from "cocoa-discord"; import { Param, SlashCommand } from "cocoa-discord/slash/class"; import { @@ -9,11 +8,13 @@ import { import { ChannelType, Client, VoiceChannel } from "discord.js"; +import { getStyle } from "../data/waifu.js"; + // * Note: Extending Class Cog is not what you should do unless you know // * underlying mechanics export class Music extends MusicBase { constructor(client: Client) { - super(client, createEmbedStyle({}), "Related to playing music"); + super(client, () => getStyle(), "Related to playing music"); } @SlashCommand("yes, rick roll") diff --git a/apps/web/package.json b/apps/web/package.json index 1cbd47a..0f3f4c4 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -26,7 +26,7 @@ "@urami/svelte": "1.1.1", "@urami/types": "1.0.1", "@waifu-bot/constants": "workspace:*", - "autoprefixer": "10.4.17", + "autoprefixer": "10.4.18", "discord-api-types": "0.37.71", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", diff --git a/package.json b/package.json index efbff53..5695049 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@typescript-eslint/eslint-plugin": "7.1.0", "@typescript-eslint/parser": "7.1.0", "eslint": "8.57.0", - "eslint-config-next": "14.1.0", + "eslint-config-next": "14.1.1", "eslint-config-prettier": "9.1.0", "eslint-plugin-import": "2.29.1", "eslint-plugin-jsx-a11y": "6.8.0", diff --git a/packages/constants/src/index.ts b/packages/constants/src/index.ts index 1481279..7cb1cf7 100644 --- a/packages/constants/src/index.ts +++ b/packages/constants/src/index.ts @@ -2,7 +2,7 @@ // * Data such as App Version and other "constants" // * will be in this package -export const AppVersion = "6.1.902"; +export const AppVersion = "6.2.911"; export const YoutubeURLPrefix = "https://www.youtube.com/watch?v="; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f0b2bb..ba2fd83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,7 +17,7 @@ importers: devDependencies: '@leomotors/config': specifier: 0.11.0 - version: 0.11.0(@trivago/prettier-plugin-sort-imports@4.3.0)(@types/eslint@8.56.5)(@types/node@20.11.24)(@typescript-eslint/eslint-plugin@7.1.0)(@typescript-eslint/parser@7.1.0)(eslint-config-next@14.1.0)(eslint-config-prettier@9.1.0)(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-prettier@5.1.3)(eslint-plugin-sort-destructure-keys@1.5.0)(eslint@8.57.0)(prettier-plugin-tailwindcss@0.5.11)(prettier@3.2.5)(typescript@5.3.3) + version: 0.11.0(@trivago/prettier-plugin-sort-imports@4.3.0)(@types/eslint@8.56.5)(@types/node@20.11.24)(@typescript-eslint/eslint-plugin@7.1.0)(@typescript-eslint/parser@7.1.0)(eslint-config-next@14.1.1)(eslint-config-prettier@9.1.0)(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-prettier@5.1.3)(eslint-plugin-sort-destructure-keys@1.5.0)(eslint@8.57.0)(prettier-plugin-tailwindcss@0.5.11)(prettier@3.2.5)(typescript@5.3.3) '@trivago/prettier-plugin-sort-imports': specifier: 4.3.0 version: 4.3.0(prettier@3.2.5) @@ -37,8 +37,8 @@ importers: specifier: 8.57.0 version: 8.57.0 eslint-config-next: - specifier: 14.1.0 - version: 14.1.0(eslint@8.57.0)(typescript@5.3.3) + specifier: 14.1.1 + version: 14.1.1(eslint@8.57.0)(typescript@5.3.3) eslint-config-prettier: specifier: 9.1.0 version: 9.1.0(eslint@8.57.0) @@ -67,8 +67,8 @@ importers: apps/bot: dependencies: '@cocoa-discord/music-module': - specifier: 1.1.0 - version: 1.1.0(@discordjs/opus@0.9.0)(ffmpeg-static@5.2.0) + specifier: 2.0.0 + version: 2.0.0(@discordjs/opus@0.9.0)(ffmpeg-static@5.2.0) '@discordjs/opus': specifier: 0.9.0 version: 0.9.0 @@ -174,8 +174,8 @@ importers: specifier: workspace:* version: link:../../packages/constants autoprefixer: - specifier: 10.4.17 - version: 10.4.17(postcss@8.4.35) + specifier: 10.4.18 + version: 10.4.18(postcss@8.4.35) discord-api-types: specifier: 0.37.71 version: 0.37.71 @@ -289,12 +289,12 @@ packages: engines: {node: '>=10'} dev: true - /@ampproject/remapping@2.2.1: - resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} + /@ampproject/remapping@2.3.0: + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.24 dev: true /@babel/code-frame@7.23.5: @@ -319,8 +319,8 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.24.0 - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.24 jsesc: 2.5.2 dev: true @@ -429,8 +429,8 @@ packages: to-fast-properties: 2.0.0 dev: true - /@cocoa-discord/music-module@1.1.0(@discordjs/opus@0.9.0)(ffmpeg-static@5.2.0): - resolution: {integrity: sha512-YefSf15tbh0RT28UQFJxVm/peSH/ngpvT40cYtp/tei8FoLKSlaBIqj7ek1WHipDwLkDEcVHcm1T7kk6GwtsYg==} + /@cocoa-discord/music-module@2.0.0(@discordjs/opus@0.9.0)(ffmpeg-static@5.2.0): + resolution: {integrity: sha512-nMr86XW6WIn0ldjScZvjHz4dYHg6ZGALykhJjXawAZhDnFNECTwnjQHeyA8t5haGK5Txi52LkbfK8i4RP+9syQ==} dependencies: '@discordjs/voice': 0.16.1(@discordjs/opus@0.9.0)(ffmpeg-static@5.2.0) chalk: 5.3.0 @@ -1081,13 +1081,13 @@ packages: '@sinclair/typebox': 0.27.8 dev: true - /@jridgewell/gen-mapping@0.3.4: - resolution: {integrity: sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==} + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.2.1 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.24 dev: true /@jridgewell/resolve-uri@3.1.2: @@ -1104,14 +1104,14 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - /@jridgewell/trace-mapping@0.3.23: - resolution: {integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==} + /@jridgewell/trace-mapping@0.3.24: + resolution: {integrity: sha512-+VaWXDa6+l6MhflBvVXjIEAzb59nQ2JUK3bwRp2zRpPtU+8TFRy9Gg/5oIcNlkEL5PGlBFGfemUVvIgLnTzq7Q==} dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@leomotors/config@0.11.0(@trivago/prettier-plugin-sort-imports@4.3.0)(@types/eslint@8.56.5)(@types/node@20.11.24)(@typescript-eslint/eslint-plugin@7.1.0)(@typescript-eslint/parser@7.1.0)(eslint-config-next@14.1.0)(eslint-config-prettier@9.1.0)(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-prettier@5.1.3)(eslint-plugin-sort-destructure-keys@1.5.0)(eslint@8.57.0)(prettier-plugin-tailwindcss@0.5.11)(prettier@3.2.5)(typescript@5.3.3): + /@leomotors/config@0.11.0(@trivago/prettier-plugin-sort-imports@4.3.0)(@types/eslint@8.56.5)(@types/node@20.11.24)(@typescript-eslint/eslint-plugin@7.1.0)(@typescript-eslint/parser@7.1.0)(eslint-config-next@14.1.1)(eslint-config-prettier@9.1.0)(eslint-plugin-import@2.29.1)(eslint-plugin-jsx-a11y@6.8.0)(eslint-plugin-prettier@5.1.3)(eslint-plugin-sort-destructure-keys@1.5.0)(eslint@8.57.0)(prettier-plugin-tailwindcss@0.5.11)(prettier@3.2.5)(typescript@5.3.3): resolution: {integrity: sha512-4vm4c+cgxoZUrZjo2yi4Ocw12xgFW9tab2JlLaLt3Wf6gvxlnJor3sRCbRk6xm1f7N5fbbgL6m8PjUdh67Snmw==} peerDependencies: '@trivago/prettier-plugin-sort-imports': ^4.1.1 @@ -1151,7 +1151,7 @@ packages: '@typescript-eslint/eslint-plugin': 7.1.0(@typescript-eslint/parser@7.1.0)(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/parser': 7.1.0(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 - eslint-config-next: 14.1.0(eslint@8.57.0)(typescript@5.3.3) + eslint-config-next: 14.1.1(eslint@8.57.0)(typescript@5.3.3) eslint-config-prettier: 9.1.0(eslint@8.57.0) eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.1.0)(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.8.0(eslint@8.57.0) @@ -1162,8 +1162,8 @@ packages: typescript: 5.3.3 dev: true - /@next/eslint-plugin-next@14.1.0: - resolution: {integrity: sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==} + /@next/eslint-plugin-next@14.1.1: + resolution: {integrity: sha512-NP1WoGFnFLpqqCWgGFjnn/sTwUExdPyjeFKRdQP1X/bL/tjAQ/TXDmYqw6vzGaP5NaZ2u6xzg+N/0nd7fOPOGQ==} dependencies: glob: 10.3.10 dev: true @@ -2139,8 +2139,8 @@ packages: engines: {node: '>=8.0.0'} dev: false - /autoprefixer@10.4.17(postcss@8.4.35): - resolution: {integrity: sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==} + /autoprefixer@10.4.18(postcss@8.4.35): + resolution: {integrity: sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g==} engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: @@ -2235,7 +2235,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001591 - electron-to-chromium: 1.4.687 + electron-to-chromium: 1.4.689 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: true @@ -2680,8 +2680,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: true - /electron-to-chromium@1.4.687: - resolution: {integrity: sha512-Ic85cOuXSP6h7KM0AIJ2hpJ98Bo4hyTUjc4yjMbkvD+8yTxEhfK9+8exT2KKYsSjnCn2tGsKVSZwE7ZgTORQCw==} + /electron-to-chromium@1.4.689: + resolution: {integrity: sha512-GatzRKnGPS1go29ep25reM94xxd1Wj8ritU0yRhCJ/tr1Bg8gKnm6R9O/yPOhGQBoLMZ9ezfrpghNaTw97C/PQ==} dev: true /emoji-regex@8.0.0: @@ -2880,8 +2880,8 @@ packages: eslint: 8.57.0 dev: true - /eslint-config-next@14.1.0(eslint@8.57.0)(typescript@5.3.3): - resolution: {integrity: sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==} + /eslint-config-next@14.1.1(eslint@8.57.0)(typescript@5.3.3): + resolution: {integrity: sha512-OLyw2oHzwE0M0EODGYMbjksDQKSshQWBzYY+Nkoxoe3+Q5G0lpb9EkekyDk7Foz9BMfotbYShJrgYoBEAVqU4Q==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 typescript: '>=3.3.1' @@ -2889,7 +2889,7 @@ packages: typescript: optional: true dependencies: - '@next/eslint-plugin-next': 14.1.0 + '@next/eslint-plugin-next': 14.1.1 '@rushstack/eslint-patch': 1.7.2 '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 @@ -3828,7 +3828,7 @@ packages: dependencies: es-errors: 1.3.0 hasown: 2.0.1 - side-channel: 1.0.5 + side-channel: 1.0.6 dev: true /ipaddr.js@1.9.1: @@ -5421,8 +5421,8 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - /side-channel@1.0.5: - resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -5535,7 +5535,7 @@ packages: internal-slot: 1.0.7 regexp.prototype.flags: 1.5.2 set-function-name: 2.0.2 - side-channel: 1.0.5 + side-channel: 1.0.6 dev: true /string.prototype.trim@1.2.8: @@ -5615,7 +5615,7 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true dependencies: - '@jridgewell/gen-mapping': 0.3.4 + '@jridgewell/gen-mapping': 0.3.5 commander: 4.1.1 glob: 10.3.10 lines-and-columns: 1.2.4 @@ -5653,7 +5653,7 @@ packages: peerDependencies: svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 dependencies: - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.24 chokidar: 3.6.0 fast-glob: 3.3.2 import-fresh: 3.3.0 @@ -5753,9 +5753,9 @@ packages: resolution: {integrity: sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug==} engines: {node: '>=16'} dependencies: - '@ampproject/remapping': 2.2.1 + '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.24 '@types/estree': 1.0.5 acorn: 8.11.3 aria-query: 5.3.0