Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: Added configurable options for buffering and connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Jul 24, 2023
1 parent 7dc92fb commit 15ecca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/commands/player/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ module.exports = {
maxSize: playerOptions.maxQueueSize ?? 1000,
maxHistorySize: playerOptions.maxHistorySize ?? 100,
volume: playerOptions.defaultVolume ?? 50,
bufferingTimeout: playerOptions.bufferingTimeout ?? 3000,
connectionTimeout: playerOptions.connectionTimeout ?? 30000,
metadata: {
channel: interaction.channel,
client: interaction.client,
Expand Down
4 changes: 3 additions & 1 deletion src/config_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ module.exports.playerOptions = {
leaveOnStop: true,
leaveOnStopCooldown: 300_000,
defaultVolume: 50,
maxQueueSize: 1000,
maxQueueSize: 1_000,
maxHistorySize: 100,
bufferingTimeout: 3_000,
connectionTimeout: 30_000,
progressBar: {
length: 14,
timecodes: false,
Expand Down

0 comments on commit 15ecca7

Please sign in to comment.