mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 06:28:54 +00:00
Merge pull request #26 from mariusbegby/change-default-player-volume
Change default player volume
This commit is contained in:
2 files changed
+24
-6
No files matched your search
+13
-6
@@ -1,7 +1,7 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
const { useMainPlayer } = require('discord-player');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
const { embedColors } = require('../config.json');
|
||||
const { embedColors, playerOptions } = require('../config.json');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
@@ -67,11 +67,18 @@ module.exports = {
|
||||
{
|
||||
requestedBy: interaction.user,
|
||||
nodeOptions: {
|
||||
leaveOnEmptyCooldown: 60000,
|
||||
leaveOnEndCooldown: 60000,
|
||||
leaveOnStopCooldown: 60000,
|
||||
maxSize: 10000,
|
||||
maxHistorySize: 100
|
||||
leaveOnEmpty: playerOptions.leaveOnEmpty ?? true,
|
||||
leaveOnEmptyCooldown:
|
||||
playerOptions.leaveOnEmptyCooldown ?? 60000,
|
||||
leaveOnEnd: playerOptions.leaveOnEnd ?? true,
|
||||
leaveOnEndCooldown:
|
||||
playerOptions.leaveOnEndCooldown ?? 60000,
|
||||
leaveOnStop: playerOptions.leaveOnStop ?? true,
|
||||
leaveOnStopCooldown:
|
||||
playerOptions.leaveOnStopCooldown ?? 60000,
|
||||
maxSize: playerOptions.maxQueueSize ?? 1000,
|
||||
maxHistorySize: playerOptions.maxHistorySize ?? 100,
|
||||
volume: playerOptions.defaultVolume ?? 50
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -10,6 +10,17 @@
|
||||
"colorInfo": "#5865F2",
|
||||
"colorNote": "#80848E"
|
||||
},
|
||||
"playerOptions": {
|
||||
"leaveOnEmpty": true,
|
||||
"leaveOnEmptyCooldown": 60000,
|
||||
"leaveOnEnd": true,
|
||||
"leaveonEndCooldown": 60000,
|
||||
"leaveOnStop": true,
|
||||
"leaveOnStopCooldown": 60000,
|
||||
"defaultVolume": 50,
|
||||
"maxQueueSize": 1000,
|
||||
"maxHistorySize": 100
|
||||
},
|
||||
"minimumLogLevel": "debug",
|
||||
"minimumLogLevelConsole": "info",
|
||||
"filterThreadAmount": "4",
|
||||
|
||||
Reference in new issue
Block a user