mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
ef6eb84921
Snapshot of the dockerisation-era bot code laid out at the repository root so it can be diffed directly against the working-copy baseline (restructure/working-copy-root) to see how the variant differed: - thin_client.py asyncio entrypoint (vs working_copy bot.py) - constants.py env-var/credential refactor, communication auth, etc. - extra gpt_interface/ service, sync.py, watch_script_params.py - conanjurer_* modules absent in this variant Docker infrastructure (docker/, docker-compose.yml, .dockerignore) intentionally omitted - this branch is for code comparison only and is not intended to be merged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
1.2 KiB
Bash
Executable File
26 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
sudo apt-get install python3-dev
|
|
sudo apt-get install portaudio19-dev python3-pyaudio
|
|
sudo apt-get install
|
|
cd /home/pi || exit
|
|
mkdir Conjurer
|
|
cd Conjurer ||exit
|
|
python3 -m venv /home/pi/Conjurer/.env
|
|
cp /home/pi/conjurer/requirements_bot.txt /home/pi/Conjurer/
|
|
# trunk-ignore(shellcheck/SC1091)
|
|
source /home/pi/Conjurer/.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
|
|
#add sed changing signal registration to catch exception in spotify dl init
|
|
deactivate
|
|
sudo cp ./conjurer.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl start conjurer.service
|
|
sudo systemctl enable conjurer.service
|