mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
queue page 2 fix & info update
This commit is contained in:
parent
b105fb1ea3
commit
134fb4f6a7
@ -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)
|
||||
|
@ -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('**#**');
|
||||
|
@ -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('**#**');
|
||||
|
Loading…
Reference in New Issue
Block a user