playlist load faster and queue command shows np

This commit is contained in:
John Grosh
2017-07-04 01:41:42 -04:00
parent 8f7e53a37c
commit cb9644d694
11 changed files with 217 additions and 176 deletions
+3 -2
View File
@@ -207,10 +207,11 @@ public class Bot extends ListenerAdapter {
try
{
String defpl = getSettings(guild).getDefaultPlaylist();
if(defpl!=null)
VoiceChannel vc = guild.getVoiceChannelById(getSettings(guild).getVoiceId());
if(defpl!=null && vc!=null)
{
if(setUpHandler(guild).playFromDefault())
guild.getAudioManager().openAudioConnection(guild.getVoiceChannelById(getSettings(guild).getVoiceId()));
guild.getAudioManager().openAudioConnection(vc);
}
}
catch(Exception ex) {System.err.println(ex);}