Fix auto-disconnect when last user leaves.

master
Nekojimi 1 year ago
parent 2a25e1368d
commit 16c2c61e76
  1. 12
      src/main/java/moe/nekojimi/chords/Chords.java

@ -188,7 +188,7 @@ public final class Chords extends ListenerAdapter
final AudioChannel channelLeft = event.getChannelLeft();
if (channelLeft != null && channelLeft == currentVoiceChannel)
{
if (channelLeft.getMembers().isEmpty())
if (channelLeft.getMembers().size() <= 1) // just us now
disconnect();
}
}
@ -400,6 +400,16 @@ public final class Chords extends ListenerAdapter
{
private static final String PROGRESS_SYMBOLS = " ▏▎▍▌▋▊▉█";
/*
🌑🌘🌗🌖🌕
🌩🌨🌧🌦🌥🌤🌞
🞎🞏🞐🞑🞒🞓
*/
// private static final String PROGRESS_SYMBOLS = " ⠀⡀⣀⣠⣤⣦⣶⣾⣿";
public DownloaderMessageHandler()

Loading…
Cancel
Save