From bd6edcd30942f644db1fd44685d9f04cfffda5ae Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 28 Mar 2023 14:53:45 +0500 Subject: [PATCH] =?UTF-8?q?play-dl=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BD=D1=83=D0=B6=D0=B5=D0=BD,=20=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=D1=81=D1=8F=20discord-player?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/JaBa.js | 7 ------- commands/NSFW/{pic.js => nsfw.js} | 0 package-lock.json | 11 +++++++---- package.json | 3 +-- 4 files changed, 8 insertions(+), 13 deletions(-) rename commands/NSFW/{pic.js => nsfw.js} (100%) diff --git a/base/JaBa.js b/base/JaBa.js index 76cdb0cc..643ccc3a 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -9,7 +9,6 @@ const BaseEvent = require("./BaseEvent.js"), path = require("path"), fs = require("fs").promises, mongoose = require("mongoose"), - playdl = require("play-dl"), moment = require("moment"); moment.relativeTimeThreshold("ss", 5); @@ -45,12 +44,6 @@ class JaBa extends Client { this.player = Player.singleton(this); - playdl.getFreeClientID().then(id => playdl.setToken({ - soundcloud: { - client_id: id, - }, - })); - 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) }); if (track.durationMS > 1) diff --git a/commands/NSFW/pic.js b/commands/NSFW/nsfw.js similarity index 100% rename from commands/NSFW/pic.js rename to commands/NSFW/nsfw.js diff --git a/package-lock.json b/package-lock.json index 532ac169..bc8dbdfd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,8 +32,7 @@ "md5": "^2.2.1", "moment": "^2.26.0", "mongoose": "^5.13.15", - "ms": "^2.1.3", - "play-dl": "^1.9.6" + "ms": "^2.1.3" }, "devDependencies": { "eslint": "^8.23.0" @@ -3476,12 +3475,14 @@ "node_modules/play-audio": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/play-audio/-/play-audio-0.5.2.tgz", - "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==" + "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==", + "peer": true }, "node_modules/play-dl": { "version": "1.9.6", "resolved": "https://registry.npmjs.org/play-dl/-/play-dl-1.9.6.tgz", "integrity": "sha512-JW44bQbME9fNfGhGXQ/rdcsHr4BfgJabVlSgpS9QY/NscfprFH1asv+q9atrZThP3+hHIpgtFNABccg9rFWlwg==", + "peer": true, "dependencies": { "play-audio": "^0.5.2" }, @@ -7024,12 +7025,14 @@ "play-audio": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/play-audio/-/play-audio-0.5.2.tgz", - "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==" + "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==", + "peer": true }, "play-dl": { "version": "1.9.6", "resolved": "https://registry.npmjs.org/play-dl/-/play-dl-1.9.6.tgz", "integrity": "sha512-JW44bQbME9fNfGhGXQ/rdcsHr4BfgJabVlSgpS9QY/NscfprFH1asv+q9atrZThP3+hHIpgtFNABccg9rFWlwg==", + "peer": true, "requires": { "play-audio": "^0.5.2" } diff --git a/package.json b/package.json index 77641b31..16fd2638 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,7 @@ "md5": "^2.2.1", "moment": "^2.26.0", "mongoose": "^5.13.15", - "ms": "^2.1.3", - "play-dl": "^1.9.6" + "ms": "^2.1.3" }, "devDependencies": { "eslint": "^8.23.0"