mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
show longer lyrics
This commit is contained in:
parent
8f8d3db252
commit
7a563b5fb8
1 changed files with 4 additions and 6 deletions
|
@ -6,7 +6,7 @@ const { lyrics } = require('../../../labscore/api');
|
|||
const { paginator } = require('../../../labscore/client');
|
||||
|
||||
function createLyricsPage(context, search, fields){
|
||||
let em= createEmbed("default", context, {
|
||||
let em = createEmbed("default", context, {
|
||||
author: {
|
||||
iconUrl: search.body.artist.image,
|
||||
name: search.body.song.title,
|
||||
|
@ -65,11 +65,9 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
fields.push({
|
||||
name: "[Lyrics]",
|
||||
value: search.body.lyrics.substr(0,1024),
|
||||
inline: false
|
||||
});
|
||||
let message = createLyricsPage(context, search, [])
|
||||
message.description = search.body.lyrics.substr(0, 2048)
|
||||
return editOrReply(context, message)
|
||||
}
|
||||
|
||||
if(fields.length > 3){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue