DZ-Musicbot/commands/repeat.js

11 lines
376 B
JavaScript

const { toggleRepeat } = require('../utils/queueManager');
module.exports = {
name: 'repeat',
description: 'Toggle repeat mode for the currently playing track',
execute(message) {
const guildId = message.guild.id;
const isRepeatOn = toggleRepeat(guildId);
message.channel.send(`Repeat mode is now ${isRepeatOn ? 'ON' : 'OFF'}.`);
},
};