Pause resume loop

This commit is contained in:
Myx
2023-06-23 10:34:55 +02:00
committed by Azaaxin
parent d9408907dd
commit f09c13ac03
9 changed files with 197 additions and 59 deletions

17
commands/loop.js Normal file
View File

@@ -0,0 +1,17 @@
const musicQueue = require('../musicQueue');
async function loopCommand(interaction) {
await interaction.deferReply();
const looping = interaction.options.getBoolean('looping');
musicQueue.setLooping(interaction.guild.id, looping);
if (looping) {
interaction.followUp('Enabled looping for the current queue.');
} else {
interaction.followUp('Disabled looping for the current queue.');
}
}
module.exports.loopCommand = loopCommand;