2 Commits

Author SHA1 Message Date
3ca44dcd2d Updated version to 2.0 2023-05-02 15:10:29 +02:00
301439f144 Fixed bot trigger on deafen and mute 2023-05-02 15:09:23 +02:00
2 changed files with 4 additions and 3 deletions

View File

@@ -40,9 +40,10 @@ class CogChannel(commands.Cog):
vc_from = before.channel
vc_to = after.channel
category = member.guild.get_channel(guildConfGet(member.guild, "category"))
# If user left vc
if vc_to is None:
if after.channel is None and before.channel.category == category and len(before.channel.members) == 0:
if isUserVoice(vc_from):
if isVoiceOfUser(vc_from, member):
await removeUserVoice(vc_from)
@@ -52,7 +53,7 @@ class CogChannel(commands.Cog):
await changeNomicPerms("deny", vc_from, member)
# If user joined vc
else:
if after.channel is not None and after.channel.id == guildConfGet(member.guild, "channel"):
if isUserVoice(vc_from):
if isVoiceOfUser(vc_from, member):
await removeUserVoice(vc_from)

View File

@@ -12,7 +12,7 @@ from os import getpid
from functions import *
pid = getpid()
version = 1.9
version = 2.0
if (
loadJson("config.json")["owner"] == "SET-OWNER-ID"