From bbad793acdb39328c083af4fa19492173ec5c690 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Thu, 7 Nov 2024 19:08:06 +0400 Subject: [PATCH 1/2] debug: debuging message response --- .../src/hivemind-adapter/hivemind.adapter.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts b/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts index 909403fc..1305ca35 100644 --- a/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts +++ b/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts @@ -31,7 +31,7 @@ export class HivemindAdapterService { this.logger.info(question, msg?.content) const data = this.adaptDataToBot(question) this.rabbitMQService.publish(Queue.DISCORD_BOT, Event.DISCORD_BOT.INTERACTION_RESPONSE.EDIT, { ...data }) - this.logger.info(msg, `QUESTION_RESPONSE_RECEIVED event is processed`) + this.logger.info(data, `QUESTION_RESPONSE_RECEIVED event is processed`) } catch (err) { this.logger.error(msg, 'handleQuestionResponseReceivedEvent Failed') this.logger.error(err, 'handleQuestionResponseReceivedEvent Failed') From b380c5cedc765a167efce928f1fcbb259059cb51 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Thu, 7 Nov 2024 19:08:48 +0400 Subject: [PATCH 2/2] debug: debuging message response --- bot/src/rabbitmq/events/interactionResponseEdit.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/src/rabbitmq/events/interactionResponseEdit.ts b/bot/src/rabbitmq/events/interactionResponseEdit.ts index e63644e3..a4bd66d7 100644 --- a/bot/src/rabbitmq/events/interactionResponseEdit.ts +++ b/bot/src/rabbitmq/events/interactionResponseEdit.ts @@ -11,6 +11,7 @@ export async function handleInteractionResponseEdit(msg: any): Promise { // logger.info({ msg, event: Event.DISCORD_BOT.INTERACTION_RESPONSE.EDIT }, 'is running'); const interaction = msg?.content.interaction const data = msg?.content.data + console.log(msg.content, msg?.content.data, msg?.content.interaction) await interactionService.editOriginalInteractionResponse(interaction, data) // logger.info({ msg, event: Event.DISCORD_BOT.INTERACTION_RESPONSE.EDIT }, 'is done'); } catch (error) {