This commit is contained in:
Daniel Odendahl Jr
2018-02-21 22:21:54 +00:00
parent 33d1c2d0a2
commit de3d5be50c
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class ToxicityCommand extends Command {
.query({ key: GOOGLE_KEY }) .query({ key: GOOGLE_KEY })
.send({ .send({
comment: { text }, comment: { text },
langauges: ['en'], languages: ['en'],
requestedAttributes: { TOXICITY: {} } requestedAttributes: { TOXICITY: {} }
}); });
const toxicity = Math.round(body.attributeScores.TOXICITY.summaryScore.value * 100); const toxicity = Math.round(body.attributeScores.TOXICITY.summaryScore.value * 100);