From fe9572acf933c4903ac448ecc227ab3a200f8d09 Mon Sep 17 00:00:00 2001 From: TheMonDon <11539895+TheMonDon@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:59:27 -0500 Subject: [PATCH] Replace play-dl with youtube-ext --- index.js | 1 + package-lock.json | 79 +++++++++++++++++++++++++++++------------------ package.json | 2 +- 3 files changed, 51 insertions(+), 31 deletions(-) diff --git a/index.js b/index.js index 184d6ab2..e9ad779a 100644 --- a/index.js +++ b/index.js @@ -429,5 +429,6 @@ process.on('uncaughtException', (err) => { }); process.on('unhandledRejection', (err) => { + console.log(err); return client.logger.error(`Unhandled Rejection: ${err}`); }); diff --git a/package-lock.json b/package-lock.json index c9555d4c..0c3d1766 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,6 @@ "openweather-apis": "^4.4.2", "opusscript": "^0.0.8", "owlbot-js": "^2.0.3", - "play-dl": "^1.9.7", "quick.db": "^9.1.7", "random-words": "^1.2.0", "randomfmylife": "^0.2.3", @@ -72,6 +71,7 @@ "twemoji": "^14.0.2", "undici": "^5.19.1", "weather-js": "^2.0.0", + "youtube-ext": "^1.1.14", "youtube-sr": "^4.3.4" }, "devDependencies": { @@ -8524,22 +8524,6 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, - "node_modules/play-audio": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/play-audio/-/play-audio-0.5.2.tgz", - "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==" - }, - "node_modules/play-dl": { - "version": "1.9.7", - "resolved": "https://registry.npmjs.org/play-dl/-/play-dl-1.9.7.tgz", - "integrity": "sha512-KpgerWxUCY4s9Mhze2qdqPhiqd8Ve6HufpH9mBH3FN+vux55qSh6WJKDabfie8IBHN7lnrAlYcT/UdGax58c2A==", - "dependencies": { - "play-audio": "^0.5.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/prebuild-install": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", @@ -8676,6 +8660,11 @@ "node": ">=10" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -10345,6 +10334,24 @@ "node": ">=8" } }, + "node_modules/youtube-ext": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/youtube-ext/-/youtube-ext-1.1.14.tgz", + "integrity": "sha512-TivrtSCfE/FCwNu6MIfhqLAye1pwzQMu8yYE5pWID+AAC+nb3kdKB/gPmL9EPR/Bn7jDKrwgSWWFf5uCZXZUyA==", + "dependencies": { + "axios": "^1.5.0" + } + }, + "node_modules/youtube-ext/node_modules/axios": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", + "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/youtube-sr": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/youtube-sr/-/youtube-sr-4.3.4.tgz", @@ -16332,19 +16339,6 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, - "play-audio": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/play-audio/-/play-audio-0.5.2.tgz", - "integrity": "sha512-ZAqHUKkQLix2Iga7pPbsf1LpUoBjcpwU93F1l3qBIfxYddQLhxS6GKmS0d3jV8kSVaUbr6NnOEcEMFvuX93SWQ==" - }, - "play-dl": { - "version": "1.9.7", - "resolved": "https://registry.npmjs.org/play-dl/-/play-dl-1.9.7.tgz", - "integrity": "sha512-KpgerWxUCY4s9Mhze2qdqPhiqd8Ve6HufpH9mBH3FN+vux55qSh6WJKDabfie8IBHN7lnrAlYcT/UdGax58c2A==", - "requires": { - "play-audio": "^0.5.2" - } - }, "prebuild-install": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", @@ -16426,6 +16420,11 @@ "retry": "^0.12.0" } }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -17721,6 +17720,26 @@ "decamelize": "^1.2.0" } }, + "youtube-ext": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/youtube-ext/-/youtube-ext-1.1.14.tgz", + "integrity": "sha512-TivrtSCfE/FCwNu6MIfhqLAye1pwzQMu8yYE5pWID+AAC+nb3kdKB/gPmL9EPR/Bn7jDKrwgSWWFf5uCZXZUyA==", + "requires": { + "axios": "^1.5.0" + }, + "dependencies": { + "axios": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", + "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "requires": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + } + } + }, "youtube-sr": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/youtube-sr/-/youtube-sr-4.3.4.tgz", diff --git a/package.json b/package.json index ce9e54dd..90f625bb 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ "openweather-apis": "^4.4.2", "opusscript": "^0.0.8", "owlbot-js": "^2.0.3", - "play-dl": "^1.9.7", "quick.db": "^9.1.7", "random-words": "^1.2.0", "randomfmylife": "^0.2.3", @@ -77,6 +76,7 @@ "twemoji": "^14.0.2", "undici": "^5.19.1", "weather-js": "^2.0.0", + "youtube-ext": "^1.1.14", "youtube-sr": "^4.3.4" }, "devDependencies": {