1
0
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:
MatteZ02
2020-06-04 17:46:43 +03:00
parent 35dba3b137
commit 2b60f0ec12
7 changed files with 13 additions and 15 deletions

View File

@ -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 = {
}
});
},
};
};