mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
Merge pull request #110 from mariusbegby/set-bufferingtimeout
fix: Added configurable options for buffering and connection timeout
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -117,6 +117,8 @@ module.exports = {
|
|||||||
maxSize: playerOptions.maxQueueSize ?? 1000,
|
maxSize: playerOptions.maxQueueSize ?? 1000,
|
||||||
maxHistorySize: playerOptions.maxHistorySize ?? 100,
|
maxHistorySize: playerOptions.maxHistorySize ?? 100,
|
||||||
volume: playerOptions.defaultVolume ?? 50,
|
volume: playerOptions.defaultVolume ?? 50,
|
||||||
|
bufferingTimeout: playerOptions.bufferingTimeout ?? 3000,
|
||||||
|
connectionTimeout: playerOptions.connectionTimeout ?? 30000,
|
||||||
metadata: {
|
metadata: {
|
||||||
channel: interaction.channel,
|
channel: interaction.channel,
|
||||||
client: interaction.client,
|
client: interaction.client,
|
||||||
|
|||||||
@@ -110,8 +110,10 @@ module.exports.playerOptions = {
|
|||||||
leaveOnStop: true,
|
leaveOnStop: true,
|
||||||
leaveOnStopCooldown: 300_000,
|
leaveOnStopCooldown: 300_000,
|
||||||
defaultVolume: 50,
|
defaultVolume: 50,
|
||||||
maxQueueSize: 1000,
|
maxQueueSize: 1_000,
|
||||||
maxHistorySize: 100,
|
maxHistorySize: 100,
|
||||||
|
bufferingTimeout: 3_000,
|
||||||
|
connectionTimeout: 30_000,
|
||||||
progressBar: {
|
progressBar: {
|
||||||
length: 14,
|
length: 14,
|
||||||
timecodes: false,
|
timecodes: false,
|
||||||
|
|||||||
Reference in new issue
Block a user