From 325feed8fb0e418e1139fb9248986e1d669b9b59 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Mon, 10 Jul 2023 15:01:18 +0200 Subject: [PATCH] fix: Explicitly set legacy ffmpeg to false, log loaded dependencies on startup --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8f90e7b..be107a7 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,9 @@ for (const file of systemCommandFiles) { } // Create a new Player, and attach it to the bot client. -const player = new Player(client); +const player = new Player(client, { + useLegacyFFmpeg: false +}); player.events.on('error', (queue, error) => { // Emitted when the player queue encounters error @@ -65,7 +67,8 @@ client.once('ready', async () => { ); // This method will load all the extractors from the @discord-player/extractor package - player.extractors.loadDefault(); + await player.extractors.loadDefault(); + console.log(player.scanDeps()); // Set Discord status client.user.setActivity('/help', {