diff --git a/bot.py b/bot.py index 50fc934..44e71e3 100644 --- a/bot.py +++ b/bot.py @@ -1981,7 +1981,7 @@ class DoSearchView(discord.ui.View): ) async def wyszukaj_linki_do_dokumentow(ctx): #1 wez tekst z kontekstu - query = ctx.message.content() + query = ctx.message.content #2 nadaj mu uuid query_uuid = uuid.uuid4() #3 wyslij Librariana diff --git a/conjurer_librarian/install_librarian_service.sh b/conjurer_librarian/install_librarian_service.sh index 4e9a235..17d32d1 100644 --- a/conjurer_librarian/install_librarian_service.sh +++ b/conjurer_librarian/install_librarian_service.sh @@ -1,9 +1,11 @@ #!/bin/bash python3 -m venv /home/pi/Conjurer_librarian/env +cp /home/pi/conjurer/conjurer_librarian/conjurer_librarian.py ./Conjurer_librarian/ +cp /home/pi/conjurer/conjurer_librarian/requirements_librarian.txt ./Conjurer_librarian/ cd /home/pi/Conjurer_librarian -source /home/pi/Conjurer_librarian/bin/activate +source /home/pi/Conjurer_librarian/env/bin/activate ./env/bin/python3 -m pip install --upgrade pip ./env/bin/python3 -m pip install -r requirements_librarian.txt deactivate -cp ./conjurer/conjurer_librarian/conjurer_librarian.py ./Conjurer_librarian/ \ No newline at end of file +cp /home/pi/conjurer/conjurer_librarian/conjurer_librarian.py ./Conjurer_librarian/ \ No newline at end of file