Skip to content

Commit c298da1

Browse files
committed
Lint code
1 parent 034aed9 commit c298da1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import me.duncte123.skybot.objects.command.CommandContext
3030
import me.duncte123.skybot.objects.command.MusicCommand
3131
import me.duncte123.skybot.utils.chunkForEmbed
3232
import net.dv8tion.jda.api.EmbedBuilder
33-
import net.dv8tion.jda.api.entities.MessageEmbed
3433
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
3534
import net.dv8tion.jda.api.interactions.commands.OptionType
3635
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData
@@ -182,17 +181,19 @@ class LyricsCommand : MusicCommand() {
182181
cb(buildLyricsEmbed(info))
183182
}
184183
}) {
185-
it.printStackTrace()
184+
LOGGER.error("Failed to generate lyrics embed", it)
186185
cb(null)
187186
}
188187
}
189188

190189
// TODO: enable genius on node
191-
/*private fun searchForLyrics(link: Link, q: String, cb: (EmbedBuilder?) -> Unit) {
190+
/*
191+
private fun searchForLyrics(link: Link, q: String, cb: (EmbedBuilder?) -> Unit) {
192192
link.node.customJsonRequest(Lyrics::class.java) {
193193
it.path("v4/lyrics/search?source=genius&query=$q")
194194
}
195-
}*/
195+
}
196+
*/
196197

197198
private fun buildLyricsEmbed(data: LyricInfo): EmbedBuilder {
198199
val builder = EmbedUtils.getDefaultEmbed()

0 commit comments

Comments
 (0)