diff --git a/bot.py b/bot.py index c817213..296689e 100644 --- a/bot.py +++ b/bot.py @@ -2128,13 +2128,12 @@ async def wyszukaj_linki_do_dokumentow(ctx): query_response.json()["data"][2], ) if ctx.message.author.nick: - username = ctx.message.author.nick - else: - username = ctx.message.author.name - + username = ctx.message.author.nick + else: + username = ctx.message.author.name query_object = QueryControl(username, query_uuid, query, logger) - COMM_Q.put() + COMM_Q.put(query_object) # TODO: tutaj jest informacja UUID o requescie zapisywana w queue i konczymy # TODO: response'y idą do serwera, serwer sobie je mieli i potem wysyła do nas posta albo response await ctx.send(f"No dobra poszło. Zapamiętaj proszę {query_uuid} - to identyfikator twojego zapytania. Jesteś {queue_size} w kolejce."+