fix: Explicitly set legacy ffmpeg to false, log loaded dependencies on startup

This commit is contained in:
Marius Begby committed 2023-07-10 15:01:18 +02:00
1 parent 79956d759a
commit 325feed8fb
1 file changed
+5 -2
+5 -2
View File
@@ -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', {