From d75b8b9b56c48d8a1c5c45381da7ce51212ff181 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Jun 2020 17:50:33 -0400 Subject: [PATCH] Fix face beauty scores being backwards --- commands/analyze/face.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/analyze/face.js b/commands/analyze/face.js index b7eea4ec..14d10e0d 100644 --- a/commands/analyze/face.js +++ b/commands/analyze/face.js @@ -43,7 +43,7 @@ module.exports = class FaceCommand extends Command { emotions.slice(0).sort((a, b) => face.emotion[b] - face.emotion[a])[0] )]; const smile = face.smile.value > face.smile.threshold; - const beautyScore = face.gender.value === 'Male' ? face.beauty.female_score : face.beauty.male_score; + const beautyScore = face.gender.value === 'Male' ? face.beauty.male_score : face.beauty.female_score; return msg.reply(oneLine` I think this is a photo of a ${face.age.value} year old ${face.gender.value.toLowerCase()}. ${pronoun} appears to be ${emotion}, and is ${smile ? 'smiling' : 'not smiling'}. I give this diff --git a/package.json b/package.json index c8bf62fa..23c1c578 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.3.0", + "version": "116.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {