From df13f7a9952c8387aa62cc4704a1b0f4e5a60277 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 4 Feb 2022 16:43:08 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B5=D0=B9,=20=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/JaBa.js | 7 +++++-- package.json | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) 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",