Files
conjurer/install_main_bot.sh
T
gitea af29b857b1 Tag: 1.15
Intermediate commits (oldest → newest):
- Testing transcribe
- Additions before wsl purge
- Transcribe cog
- Tst
- fx
- fx
- Fx
- Fix
- Testing for transcribe
- work
- Test
- Att2
- Att 3
- saving
- ffmpeg
- Fsink wsink
- fx
- msink
- tst
- Fix
- 2
- Events
- fx1
- fx2
- fix
- 11
- A
- TR
- Fix
- Fix
- Revert
- fx
- fx
- Fix
- fx
- fx
- fx
- fx
- aaa
- FX
- fx
- :S
- :)
- aaaa
- fx
- fgf
- Fx
- aa
- Fx
- ff
- aa
- as
- zzz
- fx
- :)
- fx
- fx
- addfs
- fa
- Test
- Fixtime
- FX
- Fix
- aa
- FX
- test
- Fa
- fix
- test
- fix
- fx
- aaa
- fix
- fx
- Hack na hacku hackiem pogania
- Fix fo hack
- Fix asyncio sleep
- tst
- tst
- 1
- tst 2
- ii
- Thread
- asa
- Fx
- Fix
- Fx test
- fx
- tst
- asynv
- async
- fx
- fx
- Test
- SAy
- ass
- Bugfix
- fx
- fx
- test
- fx
- fx
- fx
- fx
- Masha wants to code
- tesst
- test
- Fur ktosia!
- Last łan for todej mejbi
- test
- Fixing debug levels
- Clock tests
2025-10-30 16:59:12 +01:00

23 lines
962 B
Bash
Executable File

#!/bin/bash
sudo apt-get install python3-dev
cd /home/pi
mdkir Conjurer
cd Conjurer
python3 -m venv /home/pi/Conjurer/env
cp /home/pi/conjurer/requirements_bot.txt /home/pi/Conjurer/
source ./env/bin/activate
./env/bin/python3 -m pip install --upgrade pip
./env/bin/python3 -m pip install -r requirements_bot.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
sed -i '1i\import logging' ./env/lib/python3.11/site-packages/spotify_dl/spotify.py
sed -i '21i\ logger = logging.getLogger("discord")' ./env/lib/python3.11/site-packages/spotify_dl/spotify.py
sed -i '22i\ logger.info("Playlist")' ./env/lib/python3.11/site-packages/spotify_dl/spotify.py
deactivate
sudo cp ./conjurer.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start conjurer.service
sudo systemctl enable conjurer.service