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:
@ -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);
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user