From 95785199c0262a27156b80af8b88105e9138aadf Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 9 Apr 2024 19:21:06 +0200 Subject: [PATCH] Drmf --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 0dc0b61..859f03c 100644 --- a/bot.py +++ b/bot.py @@ -58,12 +58,13 @@ Music_Config = TypedDict( class QueryControl: - def __init__(self, query_author, query_uuid, query_content, uplogger) -> None: + def __init__(self, query_author, query_uuid, query_content, uplogger, ctx) -> None: self.author = query_author self.uuid = query_uuid self.content = query_content self.logger = uplogger self.stop = False + self.ctx = ctx self.logger.info( f"Created Query control for {self.author}, {self.uuid}: {self.content}" ) @@ -2139,7 +2140,7 @@ async def wyszukaj_linki_do_dokumentow(ctx): username = ctx.message.author.nick else: username = ctx.message.author.name - query_object = QueryControl(username, query_uuid, query, logger) + query_object = QueryControl(username, query_uuid, query, logger, ctx) OUT_COMM_Q.put(query_object) await ctx.send(f"No dobra poszło. Zapamiętaj proszę {query_uuid} - to identyfikator twojego zapytania. Jesteś {queue_size} w kolejce."+ " Zapytania obsługuje algorytm zasilany czterema chomikami zapierdalającymi w kołowrotku - więc wyniki najwcześniej za kilka godzi - ale mogą być też dni.")