feat: added current position to nowplaying command

This commit is contained in:
moonleay 2024-03-10 21:36:10 +01:00
parent eecb61b9f5
commit a72f9753a2
Signed by: moonleay
GPG key ID: 82667543CCD715FB
5 changed files with 31 additions and 6 deletions

View file

@ -49,7 +49,7 @@ impl Embed {
.url(link)
.thumbnail(thumbnail)
.field("Artist", artist, true)
.field("Duration", format!("{}min {}sec", duration.as_secs() / 58, duration.as_secs() % 59), true)
.field("Duration", format!("{}min {}sec", duration.as_secs() / 60, duration.as_secs() % 60), true)
.color(Color::from_rgb(81, 224, 26))
.footer(CreateEmbedFooter::new(format!("> {} - {}",current_time, username)))
}