From 14a7fa4bbdd7d6fd44ab10d5e0e5fbaec7d6a7c4 Mon Sep 17 00:00:00 2001 From: CJ Date: Mon, 24 Jan 2022 13:25:01 -0700 Subject: [PATCH 1/3] Update NowPlayingCommand.kt Add Author to NowPlaying message output --- .../kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt b/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt index 8d70a94..cad92f2 100644 --- a/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt +++ b/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt @@ -35,7 +35,7 @@ class NowPlayingCommand : Command ("nowplaying", "np") { //Set up common parts of the embed val message = EmbedBuilder() - .setTitle(track.info.title, track.info.uri) + .setTitle( track.info.author + " - " + track.info.title, track.info.uri) .setFooter("Source: ${track.sourceManager.sourceName}") //Prepare embeds for overrides. @@ -75,4 +75,4 @@ class NowPlayingCommand : Command ("nowplaying", "np") { val TWITCH_PURPLE = Color(100, 65, 164).rgb val DEFAULT_GREY = Color(100, 100, 100).rgb } -} \ No newline at end of file +} From d03c0a640d8a8d7632cc2667e2272a1688b66607 Mon Sep 17 00:00:00 2001 From: mtnkodiak Date: Mon, 25 Apr 2022 18:29:48 -0600 Subject: [PATCH 2/3] Added author to queue output contents in QueueCommand.kt --- src/main/kotlin/dev/arbjerg/ukulele/command/QueueCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/arbjerg/ukulele/command/QueueCommand.kt b/src/main/kotlin/dev/arbjerg/ukulele/command/QueueCommand.kt index 1e4cadb..be84c95 100644 --- a/src/main/kotlin/dev/arbjerg/ukulele/command/QueueCommand.kt +++ b/src/main/kotlin/dev/arbjerg/ukulele/command/QueueCommand.kt @@ -49,7 +49,7 @@ class QueueCommand( val pageEnd = (offset + pageSize).coerceAtMost(tracks.size) tracks.subList(offset, pageEnd).forEachIndexed { i, t -> - appendLine("`[${offset + i + 1}]` **${t.info.title}** `[${if (t.info.isStream) "Live" else TextUtils.humanReadableTime(t.duration)}]`") + appendLine("`[${offset + i + 1}]` **${t.info.author} -- ${t.info.title}** `[${if (t.info.isStream) "Live" else TextUtils.humanReadableTime(t.duration)}]`") } } From fa479696d353d4215c723563a99473ec783d65ef Mon Sep 17 00:00:00 2001 From: mtnkodiak Date: Mon, 25 Apr 2022 18:37:26 -0600 Subject: [PATCH 3/3] added another dash to be more consistent. --- .../kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt b/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt index d4a7b30..0230008 100644 --- a/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt +++ b/src/main/kotlin/dev/arbjerg/ukulele/command/NowPlayingCommand.kt @@ -35,7 +35,7 @@ class NowPlayingCommand : Command ("nowplaying", "np") { //Set up common parts of the embed val message = EmbedBuilder() - .setTitle( track.info.author + " - " + track.info.title, track.info.uri) + .setTitle( track.info.author + " -- " + track.info.title, track.info.uri) .setFooter("Source: ${track.sourceManager.sourceName}") //Prepare embeds for overrides.