Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
3ca44dcd2d | |||
301439f144 | |||
3435d59d96 | |||
d560bce8c6 | |||
528604b6b4 | |||
76c7812284 | |||
8e48334cea | |||
bc9cebbec6 | |||
a178aa2af9 | |||
fb3e291d77 | |||
75c1889477 | |||
5329b4c727 | |||
0f3a6121d6 |
6
.renovaterc
Normal file
6
.renovaterc
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
@@ -7,7 +7,7 @@
|
||||
<a href="https://crowdin.com/project/yusarinbot">
|
||||
<img alt="Crowdin" src="https://badges.crowdin.net/yusarinbot/localized.svg">
|
||||
</a>
|
||||
<a href="https://git.end-play.xyz/profitroll/TelegramPoster">
|
||||
<a href="https://git.end-play.xyz/profitroll/YusarinBot">
|
||||
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg">
|
||||
</a>
|
||||
<a href="https://discord.com/invite/2zpzErtnNT">
|
||||
|
@@ -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)
|
||||
|
@@ -1,2 +1,2 @@
|
||||
ujson~=5.7.0
|
||||
py-cord[speed]~=2.4.1
|
||||
ujson==5.7.0
|
||||
py-cord[speed]==2.4.1
|
@@ -1,2 +1,2 @@
|
||||
py-cord~=2.4.1
|
||||
requests~=2.28.2
|
||||
py-cord==2.4.1
|
||||
requests==2.29.0
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user