mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: Explicitly set legacy ffmpeg to false, log loaded dependencies on startup
This commit is contained in:
1 parent
79956d759a
commit
325feed8fb
1 file changed
+5
-2
@@ -31,7 +31,9 @@ for (const file of systemCommandFiles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a new Player, and attach it to the bot client.
|
// 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) => {
|
player.events.on('error', (queue, error) => {
|
||||||
// Emitted when the player queue encounters 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
|
// 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
|
// Set Discord status
|
||||||
client.user.setActivity('/help', {
|
client.user.setActivity('/help', {
|
||||||
|
|||||||
Reference in new issue
Block a user