File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
bot/src/main/kotlin/me/duncte123/skybot/commands/music Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import me.duncte123.skybot.objects.command.CommandContext
3030import me.duncte123.skybot.objects.command.MusicCommand
3131import me.duncte123.skybot.utils.chunkForEmbed
3232import net.dv8tion.jda.api.EmbedBuilder
33- import net.dv8tion.jda.api.entities.MessageEmbed
3433import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
3534import net.dv8tion.jda.api.interactions.commands.OptionType
3635import 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()
You can’t perform that action at this time.
0 commit comments