From 134fb4f6a76af8132af594243c30d7cefda39229 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Fri, 2 Aug 2019 21:35:25 +0300 Subject: [PATCH] queue page 2 fix & info update --- commands/info.js | 2 +- commands/q.js | 2 +- commands/queue.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/info.js b/commands/info.js index 2790c4d9..8f928b61 100644 --- a/commands/info.js +++ b/commands/info.js @@ -6,7 +6,7 @@ module.exports = { const embed = new RichEmbed() .setTitle('**Musix instructions and info**:') .addField('If you encounter any errors with musix please report about them on the offical musix support server!', 'https://discord.gg/rvHuJtB', true) - .addField('On errors you can do +stop to reset the queue and try again!', 'To use all commands make sure you have `MANAGE_MESSAGES` and `MANAGE_CHANNELS` permissions!') + .addField('On errors you can do -stop to reset the queue and try again!', 'To use all commands make sure you have `MANAGE_MESSAGES` and `MANAGE_CHANNELS` permissions!') .addField('Current Ping in milliseconds', `${Math.floor(client.ping * 10) / 10} ms`, true) .addField('Be careful with the Volume command! Volume is not recommended to be put over 3 with user volume at 100%!', 'Volume will reset to 1 always when a new song begins!', true) .setAuthor(client.user.username, client.user.displayAvatarURL) diff --git a/commands/q.js b/commands/q.js index f5d8f6d2..8c802b6e 100644 --- a/commands/q.js +++ b/commands/q.js @@ -7,7 +7,7 @@ module.exports = { if (!serverQueue) return message.channel.send(':x: There is nothing playing.'); let page = parseInt(args[1]); if (!page) page = 1; - let queuesongs = serverQueue.songs.slice((page - 1) * 10 + 1, page * 20 + 1); + let queuesongs = serverQueue.songs.slice((page - 1) * 20 + 1, page * 20 + 1); let queuemessage = `${queuesongs.map(song => `**#** ${song.title}`).join('\n')}` if (queuemessage.length >= 1972) { let finalQueuemessage = queuemessage.slice(0, 1972).split('**#**').slice(0, -1).join('**#**'); diff --git a/commands/queue.js b/commands/queue.js index 3a304c4b..a264ea0e 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -7,7 +7,7 @@ module.exports = { if (!serverQueue) return message.channel.send(':x: There is nothing playing.'); let page = parseInt(args[1]); if (!page) page = 1; - let queuesongs = serverQueue.songs.slice((page - 1) * 10 + 1, page * 20 + 1); + let queuesongs = serverQueue.songs.slice((page - 1) * 20 + 1, page * 20 + 1); let queuemessage = `${queuesongs.map(song => `**#** ${song.title}`).join('\n')}` if (queuemessage.length >= 1972) { let finalQueuemessage = queuemessage.slice(0, 1972).split('**#**').slice(0, -1).join('**#**');