Skip to content

Commit

Permalink
Merge pull request #238 from TogetherCrew/debug-hivemind-adapter
Browse files Browse the repository at this point in the history
debug: remove logs
  • Loading branch information
Behzad-rabiei authored Nov 10, 2024
2 parents 60fbcac + 12842b8 commit a4a016a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions bot/src/commands/info/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 0 additions & 10 deletions bot/src/rabbitmq/events/interactionResponseEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ 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('***************')
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a4a016a

Please sign in to comment.