name change and othre bugfixes

fix

fax

fx

121

as

aa

fx

f5

fx4

fix

fx1
This commit is contained in:
2024-03-29 15:00:30 +01:00
committed by migatu
parent 4a4f8df06e
commit 20caa5600a
6 changed files with 26 additions and 16 deletions
-1
View File
@@ -716,7 +716,6 @@ async def get_file(ctx, source, link):
"proxy": "", "proxy": "",
"default_search": "ytsearch", "default_search": "ytsearch",
"format": "bestaudio/best", "format": "bestaudio/best",
"postprocessors": sponsorblock_postprocessor,
"noplaylist": True, "noplaylist": True,
"no_color": False, "no_color": False,
"paths": {"home": dir_path}, "paths": {"home": dir_path},
+5 -5
View File
@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
git pull git pull
cd .. cd ..
cp ./bot.py ../Conjurer/ cp ./conjurer/bot.py ./Conjurer/
cp ./settings.json ../Conjurer/ cp ./conjurer/settings.json ./Conjurer/
cp ./system_gpt_settings.json ../Conjurer/ cp ./conjurer/system_gpt_settings.json ./Conjurer/
cp ./start.sh ../Conjurer cp ./conjurer/start.sh ./Conjurer/
cp ./requirements.txt ../Conjurer/ cp ./conjurer/requirements.txt ./Conjurer/requirements.txt
sudo systemctl restart conjurer.service sudo systemctl restart conjurer.service
-5
View File
@@ -1,5 +0,0 @@
discord
yt_dl
spotify_dl
spotipy
openai
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
python3 -m venv /home/pi/Conjurer/env
source ./env/bin/activate
./env/bin/python3 -m pip install --upgrade pip
./env/bin/python3 -m pip install -r requirements.txt
sed -i -e 's/os.rename/shutil.copy/g' ./env/lib/python3.11/site-packages/spotify_dl/youtube.py
sed -i '1i\import shutil' ./env/lib/python3.11/site-packages/spotify_dl/youtube.py
deactivate
sudo systemctl restart conjurer.service
+12
View File
@@ -0,0 +1,12 @@
discord
yt_dlp
spotify_dl
spotipy
openai
eyed3
numpy
pdf2image
PyPDF2
requests
spotipy
tiktoken
-5
View File
@@ -1,5 +0,0 @@
#!/bin/bash
python3 -m venv /home/pi/Conjurer/env
source .venv/bin/activate
./env/python3 -m pip install -r requirements.txt
./env/python3 /home/pi/Conjurer/bot.py