const { getQueue } = require('../utils/queueManager'); const path = require('path'); module.exports = { name: 'queue', execute(message) { const queue = getQueue(message.guild.id); if (queue.length === 0) { return message.channel.send('The queue is empty!'); } const queueString = queue.map((track, index) => `${index + 1}. ${path.basename(track)}`).join('\n'); message.channel.send(`Current queue:\n${queueString}`); } };