diff --git a/base/JaBa.js b/base/JaBa.js index 18fdf0cd..23660e75 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -1,7 +1,8 @@ const { MessageEmbed, Client, Collection } = require("discord.js"), { GiveawaysManager } = require("discord-giveaways"), { SoundCloudPlugin } = require("@distube/soundcloud"), - { SpotifyPlugin } = require("@distube/spotify"); + { SpotifyPlugin } = require("@distube/spotify"), + { YtDlpPlugin } = require("@distube/yt-dlp"); const util = require("util"), AmeClient = require("amethyste-api"), @@ -62,8 +63,10 @@ class JaBa extends Client { new SpotifyPlugin({ emitEventsAfterFetching: true }), - new SoundCloudPlugin() + new SoundCloudPlugin(), + new YtDlpPlugin() ], + youtubeDL: false, emitNewSongOnly: true, leaveOnEmpty: true, leaveOnFinish: true, diff --git a/package.json b/package.json index b13dff6f..195871a7 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@discordjs/voice": "^0.7.5", "@distube/soundcloud": "^1.1.0", "@distube/spotify": "^1.2.0", + "@distube/yt-dlp": "^0.0.2", "@k3rn31p4nic/google-translate-api": "github:k3rn31p4nic/google-translate-api", "@sentry/node": "6.3.6", "@sindresorhus/slugify": "^1.1.0", @@ -33,7 +34,7 @@ "discord-paginationembed": "github:gazmull/discord-paginationembed#v3", "discord-together": "^1.3.25", "discord.js": "^13.6.0", - "distube": "^3.3.0", + "distube": "^3.3.1", "ejs": "^3.1.3", "express": "^4.17.1", "express-session": "^1.17.0",