fix(bots/discord): set the label property correctly for message scans

This commit is contained in:
PalmDevs
2024-08-03 22:22:42 +07:00
parent 2d8688bd4c
commit 6d463df586

View File

@@ -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 }
}
}
}