DZ-Musicbot/commands/repeat.js

11 lines
376 B
JavaScript
Raw Normal View History

2024-08-17 14:58:17 -04:00
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'}.`);
},
};