Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Turn Autoplay on and Make Bot VC online 24/7 #8

Open
MukuJhansi opened this issue Oct 21, 2024 · 2 comments
Open

How to Turn Autoplay on and Make Bot VC online 24/7 #8

MukuJhansi opened this issue Oct 21, 2024 · 2 comments

Comments

@MukuJhansi
Copy link

No description provided.

@pratheek157qwds
Copy link

hey just add a command to the slash file which toggles the autoplay riffy already has autoplay and they have also mentioned it in the queueend.js you just need to add a command that toggles autoplay on and off

@BebanCode
Copy link
Contributor

BebanCode commented Dec 9, 2024

Elitex already share the example command to enable riffy autoplay on Raiden Community discord server:

const { EmbedBuilder, ChatInputCommandInteraction } = require('discord.js');
const client = require('path-to-client');

module.exports = {
    name: 'autoplay',
    description: 'Autoplays the music',
    run: (client, interaction) => {
        const player = client.riffy.players.get(interaction.guildId);

        player.isAutoplay = !player.isAutoplay;
        const embed = new EmbedBuilder()
        .setColor('Green')
        .setDescription(`🔀 Autoplay is now ${player.isAutoplay ? 'enabled' : 'disabled'}`);

        return interaction.reply({embeds: [embed]});
    }
};

For more implementation/music feature that uses riffy you can check out https://github.com/Beban-Studio/Aria-Melody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants