mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
asa
This commit is contained in:
@@ -1980,12 +1980,10 @@ class DoSearchView(discord.ui.View):
|
||||
guild=discord.Object(id=664789470779932693),
|
||||
)
|
||||
async def wyszukaj_linki_do_dokumentow(ctx):
|
||||
#1 wez tekst z kontekstu
|
||||
query = ctx.message.content
|
||||
#2 nadaj mu uuid
|
||||
query_uuid = uuid.uuid4()
|
||||
#3 wyslij Librariana
|
||||
json_query = {"UUID" : str(query_uuid), "query" : str(query)[1:]}
|
||||
json_query = {"UUID" : str(query_uuid), "query" : str(query)[30:]}
|
||||
query_response = requests.post(f"{LIBRARIAN_SERVICE_ADDRESS}{SEND_QUERY}", json=json_query, timeout=360)
|
||||
logger.info(query_response.json())
|
||||
#4 zwroc 5 wyników od librariana
|
||||
|
||||
Reference in New Issue
Block a user