From 12842b80177946c5a855e214bb1044510991ad1c Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Sun, 10 Nov 2024 17:43:25 +0400 Subject: [PATCH] debug: remove logs --- bot/src/commands/info/question.ts | 8 -------- bot/src/rabbitmq/events/interactionResponseEdit.ts | 10 ---------- .../src/hivemind-adapter/hivemind.adapter.service.ts | 8 -------- 3 files changed, 26 deletions(-) diff --git a/bot/src/commands/info/question.ts b/bot/src/commands/info/question.ts index f874dd10..c369b720 100644 --- a/bot/src/commands/info/question.ts +++ b/bot/src/commands/info/question.ts @@ -15,14 +15,6 @@ export default { async execute(interaction: ChatInputCommandInteraction_broker) { logger.info({ interaction_id: interaction.id, user: interaction.user }, 'question command started') - console.log('**************') - console.log(interaction) - console.log('**************') - console.log(interaction.token) - console.log('**************') - console.log(interaction.applicationId) - console.log('**************') - try { await interactionService.createInteractionResponse(interaction, { type: 5, diff --git a/bot/src/rabbitmq/events/interactionResponseEdit.ts b/bot/src/rabbitmq/events/interactionResponseEdit.ts index 5217abf1..e63644e3 100644 --- a/bot/src/rabbitmq/events/interactionResponseEdit.ts +++ b/bot/src/rabbitmq/events/interactionResponseEdit.ts @@ -11,16 +11,6 @@ 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('***************') - console.log(msg) - console.log('***************') - console.log(interaction) - console.log('***************') - console.log(interaction.token) - console.log(interaction.applicationId) - console.log('***************') - console.log(data) - await interactionService.editOriginalInteractionResponse(interaction, data) // logger.info({ msg, event: Event.DISCORD_BOT.INTERACTION_RESPONSE.EDIT }, 'is done'); } catch (error) { diff --git a/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts b/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts index 47086998..c8823c47 100644 --- a/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts +++ b/hivemind-adapter/src/hivemind-adapter/hivemind.adapter.service.ts @@ -29,14 +29,6 @@ export class HivemindAdapterService { this.logger.info(msg, `processing QUESTION_RESPONSE_RECEIVED event`) const question = msg?.content const data = this.adaptDataToBot(question) - - console.log('**************') - - console.log(data) - console.log('**************') - console.log({ ...data }) - console.log('**************') - this.rabbitMQService.publish(Queue.DISCORD_BOT, Event.DISCORD_BOT.INTERACTION_RESPONSE.EDIT, { ...data }) this.logger.info(data, `QUESTION_RESPONSE_RECEIVED event is processed`) } catch (err) {