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');
|
const { paginator } = require('../../../labscore/client');
|
||||||
|
|
||||||
function createLyricsPage(context, search, fields){
|
function createLyricsPage(context, search, fields){
|
||||||
let em= createEmbed("default", context, {
|
let em = createEmbed("default", context, {
|
||||||
author: {
|
author: {
|
||||||
iconUrl: search.body.artist.image,
|
iconUrl: search.body.artist.image,
|
||||||
name: search.body.song.title,
|
name: search.body.song.title,
|
||||||
|
@ -65,11 +65,9 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fields.push({
|
let message = createLyricsPage(context, search, [])
|
||||||
name: "[Lyrics]",
|
message.description = search.body.lyrics.substr(0, 2048)
|
||||||
value: search.body.lyrics.substr(0,1024),
|
return editOrReply(context, message)
|
||||||
inline: false
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(fields.length > 3){
|
if(fields.length > 3){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue