Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93be37fc91 |
@@ -1,7 +1 @@
|
||||
liberapay: marcpartensky
|
||||
patreon: marcpartensky
|
||||
github: marcpartensky
|
||||
custom:
|
||||
# - monero:43J2XmRtjDPRLD35UsYGH2AZamFBQz7dt4VdvZXVm3SuadTrvcoXUXBRUNHqukFte23Q5TWXqhbwaLJJgoVQzzbe2AJDANQ
|
||||
- https://paypal.me/marcpartensky
|
||||
- https://buymeacoffee.com/marcpartensky
|
||||
|
||||
@@ -38,12 +38,6 @@ jobs:
|
||||
with:
|
||||
push: true
|
||||
tags: marcpartensky/discord-bot:v${{ github.run_number }}.${{ steps.tag.outputs.tag }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: marcpartensky/discord-bot:latest
|
||||
|
||||
test-python-versions:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
start:
|
||||
pipenv run python .
|
||||
update:
|
||||
pipenv update
|
||||
pipenv lock --pre --clear
|
||||
pipenv lock -r > requirements.txt
|
||||
dev:
|
||||
docker-compose -f docker-compose.yml up -d --build --force-recreate --remove-orphans dev
|
||||
|
||||
@@ -36,8 +36,6 @@ unidecode = '*'
|
||||
future = '*'
|
||||
selenium = "*"
|
||||
fake-useragent = "*"
|
||||
colorama = "*"
|
||||
discord-ext-audiorec = "*"
|
||||
|
||||
[dev-packages]
|
||||
black = "*"
|
||||
@@ -45,4 +43,4 @@ pylint = "*"
|
||||
jedi = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.8.13"
|
||||
python_version = "3.8.12"
|
||||
|
||||
Generated
+1445
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,6 @@ from typing import List
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.audiorec import NativeVoiceClient
|
||||
|
||||
from config.config import masters
|
||||
|
||||
@@ -70,7 +69,7 @@ class VoiceChannel(commands.Cog):
|
||||
logging.info(before)
|
||||
channel: discord.VoiceChannel = before.channel
|
||||
members: List[discord.Member] = channel.members
|
||||
# await self.mute_if_single(members)
|
||||
await self.mute_if_single(members)
|
||||
await self.leave_if_alone(members, before.channel)
|
||||
|
||||
async def join(
|
||||
@@ -84,7 +83,7 @@ class VoiceChannel(commands.Cog):
|
||||
logging.info(after)
|
||||
channel: discord.VoiceChannel = after.channel
|
||||
members: List[discord.Member] = channel.members
|
||||
# await self.mute_if_single(members)
|
||||
await self.mute_if_single(members)
|
||||
await self.notify_on_join(member)
|
||||
await self.join_if_single(members)
|
||||
|
||||
@@ -103,7 +102,7 @@ class VoiceChannel(commands.Cog):
|
||||
before_members: List[discord.Member] = before_channel.members
|
||||
after_channel: discord.VoiceChannel = after.channel
|
||||
after_members: List[discord.Member] = after_channel.members
|
||||
# await self.mute_if_single(before_members)
|
||||
await self.mute_if_single(before_members)
|
||||
await self.join_if_single(after_members)
|
||||
|
||||
async def mute_if_single(self, members: List[discord.Member]):
|
||||
|
||||
+32
-33
@@ -6,81 +6,80 @@
|
||||
#
|
||||
|
||||
-i https://pypi.org/simple
|
||||
aenum==2.2.6
|
||||
aiohttp==3.7.4.post0; python_version >= '3.6'
|
||||
async-generator==1.10; python_version >= '3.5'
|
||||
async-timeout==3.0.1; python_full_version >= '3.5.3'
|
||||
attrs==21.4.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
beautifulsoup4==4.11.1
|
||||
certifi==2022.5.18.1; python_version >= '3.6'
|
||||
beautifulsoup4==4.10.0
|
||||
certifi==2021.10.8
|
||||
cffi==1.15.0
|
||||
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
charset-normalizer==2.0.12; python_version >= '3'
|
||||
charset-normalizer==2.0.10; python_version >= '3'
|
||||
click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
colorama==0.4.4
|
||||
colorama==0.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
commonmark==0.9.1
|
||||
cryptography==37.0.2
|
||||
cryptography==36.0.1
|
||||
deprecated==1.2.13; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
discord.py[voice]==1.7.3; python_full_version >= '3.5.3'
|
||||
dnspython==2.2.1
|
||||
dnspython==2.2.0
|
||||
dpy-http-server==0.1.0
|
||||
fake-useragent==0.1.11
|
||||
fbchat==1.9.7
|
||||
fbchat==2.0.0a5
|
||||
future==0.18.2
|
||||
gtts==2.2.4
|
||||
gtts==2.2.3
|
||||
h11==0.13.0; python_version >= '3.6'
|
||||
html2text==2020.1.16
|
||||
idna==3.3; python_version >= '3'
|
||||
jaraco.context==4.1.1; python_version >= '3.6'
|
||||
joblib==1.1.0; python_version >= '3.6'
|
||||
libretranslatepy==2.1.1
|
||||
lxml==4.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
more-itertools==8.13.0; python_version >= '3.5'
|
||||
multidict==6.0.2; python_full_version >= '3.7.0'
|
||||
lxml==4.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
more-itertools==8.12.0; python_version >= '3.5'
|
||||
multidict==5.2.0; python_version >= '3.6'
|
||||
nightcore==1.1.0
|
||||
numpy==1.22.4; python_version >= '3.8'
|
||||
numpy==1.22.1; python_version >= '3.8'
|
||||
outcome==1.1.0; python_version >= '3.6'
|
||||
paho-mqtt==1.6.1
|
||||
pexpect==4.8.0
|
||||
pillow==9.1.1
|
||||
pillow==9.0.0
|
||||
profanity-check==1.0.3
|
||||
progressbar2==4.0.0
|
||||
ptyprocess==0.7.0
|
||||
pycparser==2.21
|
||||
pydub==0.23.1
|
||||
pygithub==1.55
|
||||
pygments==2.12.0; python_version >= '3.6'
|
||||
pyjwt==2.4.0; python_version >= '3.6'
|
||||
pymongo==4.1.1
|
||||
pygments==2.11.2; python_version >= '3.5'
|
||||
pyjwt==2.3.0; python_version >= '3.6'
|
||||
pymongo==4.0.1
|
||||
pynacl==1.4.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
pyopenssl==22.0.0
|
||||
pyopenssl==21.0.0
|
||||
pysocks==1.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
python-dotenv==0.20.0
|
||||
python-utils==3.2.3; python_full_version >= '3.7.0'
|
||||
python-dotenv==0.19.2
|
||||
python-utils==3.1.0; python_version >= '3.7'
|
||||
pyyaml==6.0
|
||||
requests-futures==1.0.0
|
||||
requests==2.27.1
|
||||
rich==12.4.1
|
||||
scikit-learn==1.1.1; python_version >= '3.8'
|
||||
scipy==1.8.1; python_version < '3.11' and python_version >= '3.8'
|
||||
selenium==4.1.5
|
||||
rich==11.0.0
|
||||
scikit-learn==1.0.2; python_version >= '3.7'
|
||||
scipy==1.8.0rc2; python_version < '3.11' and python_version >= '3.8'
|
||||
selenium==4.1.0
|
||||
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
sniffio==1.2.0; python_version >= '3.5'
|
||||
sortedcontainers==2.4.0
|
||||
soupsieve==2.3.2.post1; python_version >= '3.6'
|
||||
soupsieve==2.3.1; python_version >= '3.6'
|
||||
stem==1.8.0
|
||||
threadpoolctl==3.1.0; python_version >= '3.6'
|
||||
threadpoolctl==3.0.0; python_version >= '3.6'
|
||||
torrequest==0.1.0
|
||||
translate==3.6.1
|
||||
trio-websocket==0.9.2; python_version >= '3.5'
|
||||
trio==0.20.0; python_full_version >= '3.7.0'
|
||||
typing-extensions==4.2.0; python_version < '3.9'
|
||||
unidecode==1.3.4
|
||||
urllib3[secure,socks]==1.26.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4.0'
|
||||
trio==0.19.0; python_version >= '3.6'
|
||||
typing-extensions==4.0.1; python_version >= '3.6'
|
||||
unidecode==1.3.2
|
||||
urllib3[secure]==1.26.8; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
|
||||
wikipedia==1.4.0
|
||||
wolframalpha==5.0.0
|
||||
wrapt==1.14.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
wsproto==1.1.0; python_full_version >= '3.7.0'
|
||||
xmltodict==0.13.0; python_version >= '3.4'
|
||||
wrapt==1.13.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
wsproto==1.0.0; python_full_version >= '3.6.1'
|
||||
xmltodict==0.12.0
|
||||
yarl==1.7.2; python_version >= '3.6'
|
||||
youtube-dl==2021.12.17
|
||||
|
||||
Reference in New Issue
Block a user