more minor updates

This commit is contained in:
John Grosh
2018-03-13 05:46:31 -05:00
parent e47c3efc58
commit af98eb5e01
6 changed files with 108 additions and 29 deletions

View File

@@ -95,6 +95,8 @@ public class FormatUtil {
long userid = handler.getRequester();
AudioTrack track = handler.getPlayer().getPlayingTrack();
String title = track.getInfo().title;
if(title==null || title.equals("Unknown Title"))
title = track.getInfo().uri;
return "**"+title+"** ["+(userid==0 ? "autoplay" : "<@"+userid+">")+"]"
+ "\n"+(handler.getPlayer().isPaused()?"\u23F8":"\u25B6")+" "
+"["+formatTime(track.getDuration())+"] "