mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
Replace ytdl-core with play-dl to avoid connection issues
This commit is contained in:
1 parent
ac1cd87dd2
commit
c91a7174c8
3 files changed
+21
-46
No files matched your search
@@ -31,12 +31,7 @@ for (const file of systemCommandFiles) {
|
||||
}
|
||||
|
||||
// Create a new Player, and attach it to the bot client.
|
||||
const player = new Player(client, {
|
||||
ytdlOptions: {
|
||||
quality: 'highestaudio',
|
||||
highWaterMark: 1 << 25
|
||||
}
|
||||
});
|
||||
const player = new Player(client);
|
||||
|
||||
player.events.on('error', (queue, error) => {
|
||||
// Emitted when the player queue encounters error
|
||||
|
||||
Reference in new issue
Block a user