mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 10:40:49 +00:00
some fixes and updates
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
const {
|
||||
getLyrics
|
||||
} = require("genius-lyrics-api");
|
||||
const { getLyrics } = require("genius-lyrics-api");
|
||||
|
||||
module.exports = {
|
||||
name: "lyrics",
|
||||
@ -26,9 +24,8 @@ module.exports = {
|
||||
if (lyrics === null)
|
||||
return msg.channel.send(client.messages.noResultsLyrics);
|
||||
for (let i = 0; i < lyrics.length; i += 2000) {
|
||||
let toi = ""
|
||||
toi =
|
||||
lyrics.substring(i, Math.min(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)
|
||||
@ -37,4 +34,4 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user