shuffe and skipto commands

setgame command for owner
logging fix
This commit is contained in:
John Grosh
2017-01-14 18:33:59 -05:00
parent 474cc1eb3e
commit c0dfabf0f8
10 changed files with 214 additions and 10 deletions
@@ -32,6 +32,8 @@ public class FormatUtil {
public static String formatTime(long duration)
{
if(duration == Long.MAX_VALUE)
return "LIVE";
long seconds = Math.round(duration/1000.0);
long hours = seconds/(60*60);
seconds %= 60*60;
@@ -42,10 +44,10 @@ public class FormatUtil {
public static String formattedAudio(AudioHandler handler, JDA jda, boolean inTopic)
{
if(handler==null || handler.getCurrentTrack()==null)
{
if(handler==null)
return "No music playing\n\u23F9 "+progressBar(-1)+" "+volumeIcon(100);
else if (handler.getCurrentTrack()==null)
return "No music playing\n\u23F9 "+progressBar(-1)+" "+volumeIcon(handler.getPlayer().getVolume());
}
else
{
String userid = handler.getCurrentTrack().getIdentifier();