Skip to content

Commit

Permalink
Merge pull request #231 from TogetherCrew/debug-hivemind-adapter
Browse files Browse the repository at this point in the history
Debug hivemind adapter
  • Loading branch information
Behzad-rabiei authored Nov 7, 2024
2 parents ce9ddfd + b380c5c commit 46904bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bot/src/rabbitmq/events/interactionResponseEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export async function handleInteractionResponseEdit(msg: any): Promise<void> {
// 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 46904bb

Please sign in to comment.