mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class ToxicityCommand extends Command {
|
||||
.query({ key: GOOGLE_KEY })
|
||||
.send({
|
||||
comment: { text },
|
||||
langauges: ['en'],
|
||||
languages: ['en'],
|
||||
requestedAttributes: { TOXICITY: {} }
|
||||
});
|
||||
const toxicity = Math.round(body.attributeScores.TOXICITY.summaryScore.value * 100);
|
||||
|
||||
Reference in New Issue
Block a user