14 Commits

5 changed files with 13 additions and 14 deletions

6
.renovaterc Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}

View File

@@ -42,23 +42,16 @@ class CogChannel(commands.Cog):
vc_to = after.channel
# If user left vc
if vc_to is None:
if before.channel is not None and len(before.channel.members) == 0:
if isUserVoice(vc_from):
if isVoiceOfUser(vc_from, member):
await removeUserVoice(vc_from)
return
else:
if loadJson("config.json")["enable_nomic"]:
await changeNomicPerms("deny", vc_from, member)
# If user joined vc
else:
if isUserVoice(vc_from):
if isVoiceOfUser(vc_from, member):
await removeUserVoice(vc_from)
else:
if loadJson("config.json")["enable_nomic"]:
await changeNomicPerms("deny", vc_from, member)
if after.channel is not None and after.channel.id == guildConfGet(member.guild, "channel"):
if isUserVoice(vc_to):
if loadJson("config.json")["enable_nomic"]:
await changeNomicPerms("allow", vc_to, member)

View File

@@ -1,2 +1,2 @@
ujson~=5.7.0
py-cord[speed]~=2.4.1
ujson==5.7.0
py-cord[speed]==2.4.1

View File

@@ -1,2 +1,2 @@
py-cord~=2.4.1
requests~=2.28.2
py-cord==2.4.1
requests==2.29.0

View File

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