Fixes
This commit is contained in:
parent
c249d41b08
commit
0af9944b45
@ -114,7 +114,7 @@ class Voice(commands.Cog):
|
|||||||
print(member, before, after)
|
print(member, before, after)
|
||||||
if before.channel and not after.channel:
|
if before.channel and not after.channel:
|
||||||
print(f'{member} left a vc.')
|
print(f'{member} left a vc.')
|
||||||
if before.channel.members.__len__() == 0 and member.guild.voice_client and member.guild.voice_client.channel == before.channel:
|
if before.channel.members.__len__() == 1 and member.guild.voice_client and member.guild.voice_client.channel == before.channel:
|
||||||
await before.channel.guild.voice_client.disconnect(force=True)
|
await before.channel.guild.voice_client.disconnect(force=True)
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user