fix: nowplaying command now shows the current position of the track
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
27aee06681
commit
7237095636
3 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ A Discord music bot, written in Kotlin using the kord library.
|
|||
|
||||
## Known issues
|
||||
|
||||
- The nowplaying command always shows the current position of the track at 0s
|
||||
- None (currently). Report issues to issues@moonleay.net or moonleay#7441
|
||||
|
||||
## Commands & Features
|
||||
|
||||
|
|
|
@ -69,9 +69,9 @@ class NowPlayingExtension : Extension() {
|
|||
MessageUtil.getEmbedWithImage(
|
||||
Color(0x52E01A),
|
||||
"Currently playing",
|
||||
"**${track.title}**\n*Now Playing*\nby ${track.author} :${
|
||||
"**${track.title}**\n*Now Playing*\nby ${track.author} ; ${
|
||||
TimeUtil.getTimeFormatedRaw(
|
||||
track.position.inWholeMilliseconds
|
||||
player.position
|
||||
)
|
||||
}: ${
|
||||
TimeUtil.getTimeFormatedRaw(
|
||||
|
|
|
@ -76,7 +76,7 @@ object MusicManager {
|
|||
MessageUtil.getEmbedWithImage(
|
||||
Color(0x52E01A),
|
||||
"Queuing track from link",
|
||||
"**${item.track.info.title}**\n*Queue*\nby ${item.track.info.author} :: ${
|
||||
"**${item.track.info.title}**\n*Queue*\nby ${item.track.info.author} ;: ${
|
||||
TimeUtil.getTimeFormatedRaw(
|
||||
item.track.info.length
|
||||
)
|
||||
|
@ -108,7 +108,7 @@ object MusicManager {
|
|||
MessageUtil.getEmbedWithImage(
|
||||
Color(0x52E01A),
|
||||
"Queuing playlist from link",
|
||||
"**${item.tracks.first().info.title}**\n*${item.playlistInfo.name}*\nby ${item.tracks.first().info.author} :: ${
|
||||
"**${item.tracks.first().info.title}**\n*${item.playlistInfo.name}*\nby ${item.tracks.first().info.author} ;: ${
|
||||
TimeUtil.getTimeFormatedRaw(
|
||||
item.tracks.first().info.length
|
||||
)
|
||||
|
@ -137,7 +137,7 @@ object MusicManager {
|
|||
MessageUtil.getEmbedWithImage(
|
||||
Color(0x52E01A),
|
||||
"Queuing track from query",
|
||||
"**${item.tracks.first().info.title}**\n*Queue*\nby ${item.tracks.first().info.author} :: ${
|
||||
"**${item.tracks.first().info.title}**\n*Queue*\nby ${item.tracks.first().info.author} ;: ${
|
||||
TimeUtil.getTimeFormatedRaw(
|
||||
item.tracks.first().info.length
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue