forked from embee/woomy
fix
This commit is contained in:
parent
e7ed288139
commit
3956eb6fae
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ module.exports = (client, oldState, newState) => {
|
|||
if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
|
||||
setTimeout(() => {
|
||||
if(guild.voiceChannel.members.size == 1 && guild.autoDisconnect) {
|
||||
guild.playing = false;
|
||||
guild.queue = [];
|
||||
|
||||
// Probably should be async? But no need here I think
|
||||
guild.dispatcher.end('silent');
|
||||
guild.message.channel.send('No one is listening to me. Leaving voice chat!');
|
||||
|
|
Loading…
Reference in a new issue