Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: remove logs #238

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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