mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
Update index.js
This commit is contained in:
parent
9a6941aedf
commit
de81037f05
38
index.js
38
index.js
@ -139,13 +139,18 @@ Please provide a value to select one of the search results ranging from __1-10__
|
|||||||
} else if (command === 'np') {
|
} else if (command === 'np') {
|
||||||
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
||||||
return msg.channel.send(`:musical_note: Now playing: **${serverQueue.songs[0].title}**`);
|
return msg.channel.send(`:musical_note: Now playing: **${serverQueue.songs[0].title}**`);
|
||||||
} else if (command === 'queue') {
|
} else if (command === "queue") {
|
||||||
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
if (!serverQueue)
|
||||||
return msg.channel.send(`
|
return msg.channel.send(":x: There is nothing in the queue.");
|
||||||
__**Song queue:**__
|
var queuemessage = `__**Song queue:**__
|
||||||
${serverQueue.songs.map(song => `**-** ${song.title}`).join('\n')}
|
${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
|
||||||
**Now playing:** ${serverQueue.songs[0].title} :musical_note:
|
**Now playing:** ${serverQueue.songs[0].title} :musical_note: `;
|
||||||
`);
|
if (queuemessage.length < 2000) {
|
||||||
|
return msg.channel.send(
|
||||||
|
":x: The queue has too many songs in it to show all in this channel. Try again after a few songs"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return msg.channel.send(queuemessage);
|
||||||
} else if (command === 'pause') {
|
} else if (command === 'pause') {
|
||||||
if (serverQueue && serverQueue.playing) {
|
if (serverQueue && serverQueue.playing) {
|
||||||
serverQueue.playing = false;
|
serverQueue.playing = false;
|
||||||
@ -264,13 +269,18 @@ Please provide a value to select one of the search results ranging from 1-10.
|
|||||||
} else if (command === 'np') {
|
} else if (command === 'np') {
|
||||||
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
||||||
return msg.channel.send(`:musical_note: Now playing: **${serverQueue.songs[0].title}**`);
|
return msg.channel.send(`:musical_note: Now playing: **${serverQueue.songs[0].title}**`);
|
||||||
} else if (command === 'queue') {
|
} else if (command === "queue") {
|
||||||
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
|
if (!serverQueue)
|
||||||
return msg.channel.send(`
|
return msg.channel.send(":x: There is nothing in the queue.");
|
||||||
__**Song queue:**__
|
var queuemessage = `__**Song queue:**__
|
||||||
${serverQueue.songs.map(song => `**-** ${song.title}`).join('\n')}
|
${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
|
||||||
**Now playing:** ${serverQueue.songs[0].title} :musical_note:
|
**Now playing:** ${serverQueue.songs[0].title} :musical_note: `;
|
||||||
`);
|
if (queuemessage.length < 2000) {
|
||||||
|
return msg.channel.send(
|
||||||
|
":x: The queue has too many songs in it to show all in this channel. Try again after a few songs"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return msg.channel.send(queuemessage);
|
||||||
} else if (command === 'pause') {
|
} else if (command === 'pause') {
|
||||||
if (serverQueue && serverQueue.playing) {
|
if (serverQueue && serverQueue.playing) {
|
||||||
serverQueue.playing = false;
|
serverQueue.playing = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user