Skip to content

Commit

Permalink
feat: Skipping the INTERACTION_RESPONSE.Create!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Jan 18, 2024
1 parent 004dab8 commit eb22335
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions celery_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit eb22335

Please sign in to comment.