Skip to content

Commit 6f61cb7

Browse files
committed
Add lyrics source
1 parent c09c040 commit 6f61cb7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bot/src/main/kotlin/me/duncte123/skybot/commands/music/LyricsCommand.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ class LyricsCommand : MusicCommand() {
182182
it.track.albumArt.last().url,
183183
it.track.title,
184184
null,
185+
it.source,
185186
text
186187
)
187188
}
@@ -190,6 +191,7 @@ class LyricsCommand : MusicCommand() {
190191
it.track.albumArt.last().url,
191192
it.track.title,
192193
null,
194+
it.source,
193195
it.text
194196
)
195197

@@ -212,6 +214,8 @@ class LyricsCommand : MusicCommand() {
212214
builder.addField("**[${index + 1}]**", chunk, true)
213215
}
214216

217+
builder.setFooter("Lyrics provided by ${data.source}")
218+
215219
return builder
216220
}
217221

@@ -265,6 +269,7 @@ class LyricsCommand : MusicCommand() {
265269
data["song_art_image_url"].asText(),
266270
"",
267271
data["url"].asText(),
272+
"genius.com",
268273
lyrics
269274
)
270275
)
@@ -289,5 +294,5 @@ class LyricsCommand : MusicCommand() {
289294
}
290295
}
291296

292-
private data class LyricInfo(val artUrl: String, val title: String, val url: String?, val lyrics: String)
297+
private data class LyricInfo(val artUrl: String, val title: String, val url: String?, val source: String, val lyrics: String)
293298
}

0 commit comments

Comments
 (0)