if (command === 'queue') {
const queue = distube.getQueue(message);
if (!queue) {
message.channel.send('目前歌單沒有歌');
} else {
message.channel.send(
`Current queue:\n${queue.songs
.map(
(song, id) =>
`**${id ? id : 'Playing'}**. ${
song.name
} - \`${song.formattedDuration}\``,
) //將歌的資訊輸出
.slice(0, 10)
.join('\n')}`, //排列整齊
);
}
}
const status = queue =>
`Volume: \`${queue.volume}%\` //音量
| Filter: \`${'Off'}\` //特殊模式
| Loop: \`${
queue.repeatMode //檢查迴圈是否開啟
? queue.repeatMode === 2
? 'All Queue'
: 'This Song'
: 'Off'
}\` | Autoplay: \`${queue.autoplay ? 'On' : 'Off'}\``//自動撥放;