From 565ccfd9b67db70f9ea01b90760f3f181fe79a0a Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sat, 3 Aug 2019 10:47:12 +0300 Subject: [PATCH] Format update --- commands/help.js | 2 +- commands/info.js | 2 +- commands/p.js | 2 +- commands/play.js | 2 +- commands/q.js | 6 ------ commands/queue.js | 6 ------ 6 files changed, 4 insertions(+), 16 deletions(-) diff --git a/commands/help.js b/commands/help.js index 37ded591..44911c63 100644 --- a/commands/help.js +++ b/commands/help.js @@ -15,7 +15,7 @@ module.exports = { .addField('```-skip | -s```', 'Skip a song.', true) .addField('```-invite```', 'Invite Musix.', true) .addField('```-ping```', 'See the current ping for Musix', true) - .addField('```-info```', 'Display info and instructions.', true) + .addField('```-info```', 'Display the info', true) .addField('```-help```', 'Display the help.', true) .setAuthor(client.user.username, client.user.displayAvatarURL) .setColor('#b50002') diff --git a/commands/info.js b/commands/info.js index 8f928b61..e14a005d 100644 --- a/commands/info.js +++ b/commands/info.js @@ -7,7 +7,7 @@ module.exports = { .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('Current Ping in milliseconds', `${Math.floor(client.ping * 10) / 10} ms`, true) + .addField('Current Ping', `${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) .setColor('#b50002') diff --git a/commands/p.js b/commands/p.js index e9734fa7..0e60b898 100644 --- a/commands/p.js +++ b/commands/p.js @@ -39,7 +39,7 @@ module.exports = { const embed = new RichEmbed() .setTitle("__Song Selection__") .setDescription(`${videos.map(video2 => `**${++index}** \`${video2.title}\` `).join('\n')}`) - .setFooter("Please provide a number ranging from __1-10__ to select one of the search results.") + .setFooter("Please provide a number ranging from 1-10 to select one of the search results.") .setColor("#b50002") message.channel.send(embed); try { diff --git a/commands/play.js b/commands/play.js index c535919f..e2519870 100644 --- a/commands/play.js +++ b/commands/play.js @@ -39,7 +39,7 @@ module.exports = { const embed = new RichEmbed() .setTitle("__Song Selection__") .setDescription(`${videos.map(video2 => `**${++index}** \`${video2.title}\` `).join('\n')}`) - .setFooter("Please provide a number ranging from __1-10__ to select one of the search results.") + .setFooter("Please provide a number ranging from 1-10 to select one of the search results.") .setColor("#b50002") message.channel.send(embed); try { diff --git a/commands/q.js b/commands/q.js index 4fe98597..17c2dbb9 100644 --- a/commands/q.js +++ b/commands/q.js @@ -14,12 +14,6 @@ module.exports = { if (page === 1) pagetext = ':arrow_down: Next in queue :arrow_down:' 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('**#**'); - const overflowSongsAmount = queuemessage.replace(finalQueuemessage, '').split('**#**').length; - finalQueuemessage += `\nI could not display all the songs at once. ${overflowSongsAmount} songs were not displayed here.`; - queuemessage = finalQueuemessage; - } const hashs = queuemessage.split('**#**').length; for (let i = 0; i < hashs; i++) { queuemessage = queuemessage.replace('**#**', `**${i + 1}**`); diff --git a/commands/queue.js b/commands/queue.js index 035324d8..0e2f98c9 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -14,12 +14,6 @@ module.exports = { if (page === 1) pagetext = ':arrow_down: Next in queue :arrow_down:' 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('**#**'); - const overflowSongsAmount = queuemessage.replace(finalQueuemessage, '').split('**#**').length; - finalQueuemessage += `\nI could not display all the songs at once. ${overflowSongsAmount} songs were not displayed here.`; - queuemessage = finalQueuemessage; - } const hashs = queuemessage.split('**#**').length; for (let i = 0; i < hashs; i++) { queuemessage = queuemessage.replace('**#**', `**${i + 1}**`);