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

Commit

Permalink
fix: Set max queue and history size
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Jul 10, 2023
1 parent 31a9d8f commit 981c8ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/play.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
const { useMainPlayer, useQueue } = require('discord-player');
const { useMainPlayer } = require('discord-player');
const { EmbedBuilder } = require('discord.js');
const { embedColors } = require('../config.json');

Expand Down Expand Up @@ -52,7 +52,9 @@ module.exports = {
nodeOptions: {
leaveOnEmptyCooldown: 60000,
leaveOnEndCooldown: 60000,
leaveOnStopCooldown: 60000
leaveOnStopCooldown: 60000,
maxSize: 10000,
maxHistorySize: 100
}
}
);
Expand Down

0 comments on commit 981c8ce

Please sign in to comment.