Skip to content

Commit

Permalink
fix(bots/discord): set the label property correctly for message scans
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Aug 3, 2024
1 parent 2d8688b commit 6d463df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bots/discord/src/utils/discord/messageScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ export const getResponseFromText = async (
return responseConfig
}

responseConfig.label = trigger!.label

if (matchedLabel.confidence >= trigger!.threshold) {
logger.debug('Label confidence is enough')
responseConfig = response
responseConfig = { ...responseConfig, ...response, label: trigger!.label }
}
}
}
Expand Down

0 comments on commit 6d463df

Please sign in to comment.