ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
869 stars 1.05k forks source link

leaveOnEnd #192

Closed Noman17-tect closed 1 year ago

Noman17-tect commented 2 years ago

leaveOnEnd not working in new version of music bot, can anyone help?

    const queue = await player.createQueue(message.guild, {
        autoSelfDeaf: false,
        leaveOnEmptyCooldown: 150000,
            leaveOnEndCooldown: 300000,
            leaveOnStopCooldown: 300000,
                enableLive: true,

        metadata: message.channel
    });
lemesherry commented 2 years ago

@Noman17-tect Define the discord-player options in config file in main directory, discordPlayer options should be like this.

discordPlayer: {}

change them to something like this or whatever you want to

        discordPlayer: {
            leaveOnEnd: false,
            leaveOnStop: false,
            leaveOnEmpty: true,
            leaveOnEmptyCooldown: 30000,
            autoSelfDeaf: true
        }
LegalSmeagol commented 2 years ago

@Noman17-tect Define the discord-player options in config file in main directory, discordPlayer options should be like this.

discordPlayer: {}

change them to something like this or whatever you want to

        discordPlayer: {
            leaveOnEnd: false,
            leaveOnStop: false,
            leaveOnEmpty: true,
            leaveOnEmptyCooldown: 30000,
            autoSelfDeaf: true
        }

These options don't seem to work unfortunately. Not sure if this is an issue with the bot or discord-player, but these have no effect on behaviour.

milbits commented 2 years ago

@Noman17-tect Define the discord-player options in config file in main directory, discordPlayer options should be like this.


discordPlayer: {}

change them to something like this or whatever you want to


        discordPlayer: {

            leaveOnEnd: false,

            leaveOnStop: false,

            leaveOnEmpty: true,

            leaveOnEmptyCooldown: 30000,

            autoSelfDeaf: true

        }

These options don't seem to work unfortunately. Not sure if this is an issue with the bot or discord-player, but these have no effect on behaviour.

its a bot issue

revot334 commented 1 year ago

fixed