diff --git a/bots/discord/src/utils/discord/messageScan.ts b/bots/discord/src/utils/discord/messageScan.ts index 0cd8376..5c4822d 100644 --- a/bots/discord/src/utils/discord/messageScan.ts +++ b/bots/discord/src/utils/discord/messageScan.ts @@ -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 } } } }