1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-07 10:40:49 +00:00

Update 3.5

This commit is contained in:
MatteZ02
2020-06-04 08:26:33 +03:00
parent 256585293e
commit 0874818101
12 changed files with 71 additions and 26 deletions

View File

@ -25,11 +25,16 @@ module.exports = {
getLyrics(options).then((lyrics) => {
if (lyrics === null)
return msg.channel.send(client.messages.noResultsLyrics);
const embed = new Discord.MessageEmbed()
.setTitle(client.messages.lyricsTitle)
.setDescription(lyrics)
.setColor(client.config.embedColor);
msg.channel.send(embed);
for (let i = 0; i < lyrics.length; i += 2000) {
let toi = ""
toi =
lyrics.substring(i, Math.min(lyrics.length, i + 2000));
const embed = new Discord.MessageEmbed()
.setTitle(client.messages.lyricsTitle)
.setDescription(toi)
.setColor(client.config.embedColor);
msg.channel.send(embed);
}
});
},
};