diff --git a/Dockerfile b/Dockerfile index 00d02e6..d44da17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,6 @@ RUN npx tsc RUN rm -r src/ tsconfig.json RUN npm uninstall typescript @types/sqlite3 -ENV DP_FORCE_YTDL_MOD=play-dl +ENV DP_FORCE_YTDL_MOD=yt-stream CMD ["dumb-init", "node", "./dist/index.js"] diff --git a/config/example.env b/config/example.env index 842f502..b1d6b35 100644 --- a/config/example.env +++ b/config/example.env @@ -1,2 +1,2 @@ TOKEN_DISCORD="your-token-goes-here" -DP_FORCE_YTDL_MOD="play-dl" +DP_FORCE_YTDL_MOD="yt-stream" diff --git a/package-lock.json b/package-lock.json index b212981..5e504d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,10 +17,10 @@ "discord-player": "^6.6.2", "discord.js": "^14.12.1", "genius-lyrics": "^4.4.3", - "play-dl": "^1.9.6", "sqlite3": "^5.1.6", "typescript": "^5.1.6", - "uuid": "^9.0.0" + "uuid": "^9.0.0", + "yt-stream": "^1.4.8" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.2.1", @@ -2986,22 +2986,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "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.6", - "resolved": "https://registry.npmjs.org/play-dl/-/play-dl-1.9.6.tgz", - "integrity": "sha512-JW44bQbME9fNfGhGXQ/rdcsHr4BfgJabVlSgpS9QY/NscfprFH1asv+q9atrZThP3+hHIpgtFNABccg9rFWlwg==", - "dependencies": { - "play-audio": "^0.5.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -4179,6 +4163,11 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/youtube-sr/-/youtube-sr-4.3.4.tgz", "integrity": "sha512-olSYcR80XigutCrePEXBX3/RJJrWfonJQj7+/ggBiWU0CzTDLE1q8+lpWTWCG0JpzhzILp/IB/Bq/glGqqr1TQ==" + }, + "node_modules/yt-stream": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/yt-stream/-/yt-stream-1.4.8.tgz", + "integrity": "sha512-XtJ1njQ5xKSmW4FAk+YVliyV+XG5/ejAaANUqbyT5ya+COgW9hyswWh16mZJZzj+uEkRobzCId/oH4kP2VmTbQ==" } } } diff --git a/package.json b/package.json index 3a6d79d..665c465 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,10 @@ "discord-player": "^6.6.2", "discord.js": "^14.12.1", "genius-lyrics": "^4.4.3", - "play-dl": "^1.9.6", "sqlite3": "^5.1.6", "typescript": "^5.1.6", - "uuid": "^9.0.0" + "uuid": "^9.0.0", + "yt-stream": "^1.4.8" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.2.1",