mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-24 13:09:18 +02:00
Fixed Bot being stuck without playing
This commit is contained in:
parent
91fe1477ff
commit
34c2b21a31
2 changed files with 1 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ public enum VoiceChecks {
|
|||
|
||||
BOT_PLAYING(new Check() {
|
||||
@Override public boolean getResult(Member messageAuthor, VoiceChannel connectedChannel, @Nullable TrackManager trackManager) {
|
||||
return trackManager != null && trackManager.getPlayer().getPlayingTrack() != null;
|
||||
return trackManager != null && (trackManager.getPlayer().getPlayingTrack() != null || trackManager.getTrackQueue().size() > 0);
|
||||
}
|
||||
|
||||
@Override public String getErrorCode() {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ public class AloneDisconnectListener extends ListenerAdapter {
|
|||
|
||||
// if there's only one member (and i'm still in), be alone and start a 5m timer
|
||||
if (guild.getAudioManager().getConnectedChannel().getMembers().size() == 1) {
|
||||
System.out.println("i'm alone");
|
||||
aloneGuilds.put(guild, System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue