From eb2233566e4d56128dce2d39a1751ec1020522b2 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 18 Jan 2024 18:51:01 +0330 Subject: [PATCH] feat: Skipping the INTERACTION_RESPONSE.Create! --- celery_app/tasks.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/celery_app/tasks.py b/celery_app/tasks.py index 841a02c..335bc3c 100644 --- a/celery_app/tasks.py +++ b/celery_app/tasks.py @@ -48,22 +48,22 @@ def ask_question_auto_search( interaction = json.loads(bot_given_info["content"]["interaction"]) chat_input_interaction = ChatInputCommandInteraction.from_dict(interaction) - create_interaction_content = Payload.DISCORD_BOT.INTERACTION_RESPONSE.Create( - interaction=chat_input_interaction, - data=InteractionResponse( - type=4, - data=InteractionCallbackData( - content="Processing your question ...", flags=64 - ), - ), - ).to_dict() + # create_interaction_content = Payload.DISCORD_BOT.INTERACTION_RESPONSE.Create( + # interaction=chat_input_interaction, + # data=InteractionResponse( + # type=4, + # data=InteractionCallbackData( + # content="Processing your question ...", flags=64 + # ), + # ), + # ).to_dict() - logging.info(f"{prefix}Sending process question to discord-bot!") - job_send( - event=Event.DISCORD_BOT.INTERACTION_RESPONSE.CREATE, - queue_name=Queue.DISCORD_BOT, - content=create_interaction_content, - ) + # logging.info(f"{prefix}Sending process question to discord-bot!") + # job_send( + # event=Event.DISCORD_BOT.INTERACTION_RESPONSE.CREATE, + # queue_name=Queue.DISCORD_BOT, + # content=create_interaction_content, + # ) logging.info(f"{prefix}Querying the data sources!") # for now we have just the discord platform response, source_nodes = query_multiple_source(