From bf3e6065c3385e591ab3ab722208b0929a55033b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 31 Oct 2023 20:42:16 +0500 Subject: [PATCH] remove yandex music --- base/JaBa.js | 2 -- package.json | 1 - pnpm-lock.yaml | 66 -------------------------------------------------- 3 files changed, 69 deletions(-) diff --git a/base/JaBa.js b/base/JaBa.js index 10d24a71..ef66ff6f 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -1,6 +1,5 @@ const { Client, Collection, SlashCommandBuilder, ContextMenuCommandBuilder } = require("discord.js"), { Player } = require("discord-player"), - { YandexMusicExtractor } = require("discord-player-yandexmusic"), { GiveawaysManager } = require("discord-giveaways"), { REST } = require("@discordjs/rest"), { Routes } = require("discord-api-types/v10"); @@ -37,7 +36,6 @@ class JaBa extends Client { this.player = new Player(this); this.player.extractors.loadDefault(); - this.player.extractors.register(YandexMusicExtractor, { access_token: this.config.apiKeys.yandex.token, uid: this.config.apiKeys.yandex.uid }); this.player.events.on("playerStart", async (queue, track) => { const m = await queue.metadata.channel.send({ content: this.translate("music/play:NOW_PLAYING", { songName: track.title }, queue.metadata.channel.guild.data.language) }); diff --git a/package.json b/package.json index eddfd53a..cccbe52b 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "discord-api-types": "^0.37.62", "discord-giveaways": "^6.0.1", "discord-player": "^6.6.6", - "discord-player-yandexmusic": "^0.0.12", "discord.js": "^14.13.0", "gamedig": "^4.1.0", "i18next": "^21.10.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56984a56..6361a75e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ dependencies: discord-player: specifier: ^6.6.6 version: 6.6.6(@discord-player/extractor@4.4.5)(@discordjs/opus@0.9.0) - discord-player-yandexmusic: - specifier: ^0.0.12 - version: 0.0.12(@discord-player/extractor@4.4.5)(@discordjs/opus@0.9.0) discord.js: specifier: ^14.13.0 version: 14.13.0 @@ -481,14 +478,6 @@ packages: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: true - /axios@0.21.4: - resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} - dependencies: - follow-redirects: 1.15.3 - transitivePeerDependencies: - - debug - dev: false - /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -733,23 +722,6 @@ packages: serialize-javascript: 6.0.1 dev: false - /discord-player-yandexmusic@0.0.12(@discord-player/extractor@4.4.5)(@discordjs/opus@0.9.0): - resolution: {integrity: sha512-oqLeF4QQXo35XCYWkGewUxgyyUmE0v9bhl+Ie7aRApt7MZstXPOWTBfXldcdaamea8iag8IqyD1KVl+wyUqV3g==} - dependencies: - discord-player: 6.6.6(@discord-player/extractor@4.4.5)(@discordjs/opus@0.9.0) - tslint-config-prettier: 1.18.0 - ym-api-meowed: 1.2.9 - transitivePeerDependencies: - - '@discord-player/extractor' - - '@discordjs/opus' - - bufferutil - - debug - - ffmpeg-static - - node-opus - - opusscript - - utf-8-validate - dev: false - /discord-player@6.6.6(@discord-player/extractor@4.4.5)(@discordjs/opus@0.9.0): resolution: {integrity: sha512-XYQU4Vuy3H1aXgdaNPajzp8od7salL5cy2JIWoUdINKv5rCVXeu24BxkPj7QB5Db6uK3yKCOumfIWkL0Il1uVQ==} peerDependencies: @@ -1022,16 +994,6 @@ packages: resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} dev: true - /follow-redirects@1.15.3: - resolution: {integrity: sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: false - /form-data-encoder@2.1.4: resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==} engines: {node: '>= 14.17'} @@ -2060,12 +2022,6 @@ packages: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: false - /tslint-config-prettier@1.18.0: - resolution: {integrity: sha512-xPw9PgNPLG3iKRxmK7DWr+Ea/SzrvfHtjFt5LBl61gk2UBG/DB9kCXRjv+xyIU1rUtnayLeMUVJBcMX8Z17nDg==} - engines: {node: '>=4.0.0'} - hasBin: true - dev: false - /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -2173,19 +2129,6 @@ packages: optional: true dev: false - /xml2js@0.4.23: - resolution: {integrity: sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==} - engines: {node: '>=4.0.0'} - dependencies: - sax: 1.2.4 - xmlbuilder: 11.0.1 - dev: false - - /xmlbuilder@11.0.1: - resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} - engines: {node: '>=4.0'} - dev: false - /xmlbuilder@8.2.2: resolution: {integrity: sha512-eKRAFz04jghooy8muekqzo8uCSVNeyRedbuJrp0fovbLIi7wlsYtdUn3vBAAPq2Y3/0xMz2WMEUQ8yhVVO9Stw==} engines: {node: '>=4.0'} @@ -2203,15 +2146,6 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: false - /ym-api-meowed@1.2.9: - resolution: {integrity: sha512-zdVgJ3OYWz9DQqzblTl4dM5dm5DcGktRo5hle3L6QjK2NqxnKczk7//2hQqB907m4M9lx7FDier28VLdp5RKNw==} - dependencies: - axios: 0.21.4 - xml2js: 0.4.23 - transitivePeerDependencies: - - debug - dev: false - /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'}