update dependencies and use new youtube extractor #138
4 changed files with 174 additions and 1165 deletions
1320
package-lock.json
generated
1320
package-lock.json
generated
File diff suppressed because it is too large
Load diff
14
package.json
14
package.json
|
@ -17,21 +17,21 @@
|
||||||
"author": "La confrérie du Kassoulait",
|
"author": "La confrérie du Kassoulait",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discord-player/extractor": "^4.4.7",
|
"@discord-player/extractor": "^4.5.0",
|
||||||
"@discordjs/rest": "^2.3.0",
|
"@discordjs/rest": "^2.3.0",
|
||||||
"@distube/ytdl-core": "^4.13.4",
|
|
||||||
"@types/sqlite3": "^3.1.11",
|
"@types/sqlite3": "^3.1.11",
|
||||||
"@types/uuid": "^9.0.8",
|
"@types/uuid": "^10.0.0",
|
||||||
"discord-player": "^6.6.10",
|
"discord-player": "^6.7.1",
|
||||||
|
"discord-player-youtubei": "^1.2.1",
|
||||||
"discord.js": "^14.15.3",
|
"discord.js": "^14.15.3",
|
||||||
"mediaplex": "^0.0.9",
|
"mediaplex": "^0.0.9",
|
||||||
"sqlite3": "^5.1.7",
|
"sqlite3": "^5.1.7",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.5.4",
|
||||||
"uuid": "^10.0.0"
|
"uuid": "^10.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "~7.13.0",
|
"@typescript-eslint/eslint-plugin": "~7.18.0",
|
||||||
"@typescript-eslint/parser": "~7.13.0",
|
"@typescript-eslint/parser": "~7.18.0",
|
||||||
"dotenv": "~16.4.5",
|
"dotenv": "~16.4.5",
|
||||||
"prettier-eslint": "~16.3.0",
|
"prettier-eslint": "~16.3.0",
|
||||||
"ts-node-dev": "~2.0.0"
|
"ts-node-dev": "~2.0.0"
|
||||||
|
|
|
@ -181,6 +181,7 @@ export default {
|
||||||
delay,
|
delay,
|
||||||
player.search(query, {
|
player.search(query, {
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
|
searchEngine: "spotifySearch",
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { readFileSync } from "fs";
|
||||||
import { Database } from "sqlite3";
|
import { Database } from "sqlite3";
|
||||||
import "../modules/client";
|
import "../modules/client";
|
||||||
import { loadLocales } from "./locales";
|
import { loadLocales } from "./locales";
|
||||||
|
import { YoutubeiExtractor } from "discord-player-youtubei";
|
||||||
|
|
||||||
/** Creation of the client and definition of its properties. */
|
/** Creation of the client and definition of its properties. */
|
||||||
export default async () => {
|
export default async () => {
|
||||||
|
@ -44,7 +45,8 @@ export default async () => {
|
||||||
quality: "highestaudio",
|
quality: "highestaudio",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
await player.extractors.loadDefault();
|
await player.extractors.loadDefault((ext) => ext !== "YouTubeExtractor");
|
||||||
|
await player.extractors.register(YoutubeiExtractor, {});
|
||||||
|
|
||||||
console.log("Translations progression :");
|
console.log("Translations progression :");
|
||||||
client.locales = await loadLocales(client.config.default_lang);
|
client.locales = await loadLocales(client.config.default_lang);
|
||||||
|
|
Loading…
Reference in a new issue