You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
684 B

  1. module.exports = {
  2. name: 'queue',
  3. description: 'Display the queue for the next items',
  4. execute(message) {
  5. const serverQueue = message.client.queue.get(message.guild.id);
  6. if (!serverQueue) return message.channel.send('There is nothing in queue.');
  7. message_txt = `There are ${serverQueue.songs.length} items on the list\n`
  8. message_txt += "```\n";
  9. c = 0
  10. serverQueue.songs.forEach(function (item, index){
  11. if(c == 10){
  12. return;
  13. }
  14. c += 1;
  15. message_txt += `${index}: ${item.title}\n`
  16. })
  17. message_txt += "\n```";
  18. return message.channel.send(message_txt);
  19. },
  20. };