change: cleanup and readme updated

This commit is contained in:
ZtereoHYPE 2022-01-03 20:18:08 +01:00
parent 6a46016fb1
commit 6e40742d56
2 changed files with 8 additions and 4 deletions

View file

@ -53,7 +53,6 @@ public class AloneDisconnectListener extends ListenerAdapter {
if (guild.getAudioManager().getConnectedChannel() == null) return; // if we're not connected ignore
// if there's no longer only one member don't be alone (i wrote this at 4am please tell me it works)
if (guild.getAudioManager().getConnectedChannel().getMembers().size() > 1) {
aloneGuilds.remove(guild);
@ -66,7 +65,7 @@ public class AloneDisconnectListener extends ListenerAdapter {
if ((time - entry.getValue()) > (long) 5 * 60 * 1000) {
TrackManagers.removeGuildTrackManager(entry.getKey());
aloneGuilds.remove(entry.getKey());
};
}
}
}