mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +00:00
fix(bots/discord): set the label property correctly for message scans
This commit is contained in:
@@ -79,11 +79,9 @@ export const getResponseFromText = async (
|
|||||||
return responseConfig
|
return responseConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
responseConfig.label = trigger!.label
|
|
||||||
|
|
||||||
if (matchedLabel.confidence >= trigger!.threshold) {
|
if (matchedLabel.confidence >= trigger!.threshold) {
|
||||||
logger.debug('Label confidence is enough')
|
logger.debug('Label confidence is enough')
|
||||||
responseConfig = response
|
responseConfig = { ...responseConfig, ...response, label: trigger!.label }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user