From 35948f7c93ccfad76d3728c09418187acd8663ff Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 5 Jun 2019 21:26:45 -0400 Subject: [PATCH] Fix "india male" in face --- commands/analyze/face.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/analyze/face.js b/commands/analyze/face.js index 66da3714..a998446f 100644 --- a/commands/analyze/face.js +++ b/commands/analyze/face.js @@ -42,8 +42,9 @@ module.exports = class FaceCommand extends Command { )]; const smile = face.smile.value > face.smile.threshold; const beautyScore = face.gender.value === 'Male' ? face.beauty.female_score : face.beauty.male_score; + const ethnicity = face.ethnicity.value.toLowerCase(); return msg.reply(oneLine` - I think this is a photo of a ${face.age.value} year old ${face.ethnicity.value.toLowerCase()} + I think this is a photo of a ${face.age.value} year old ${ethnicity === 'india' ? 'indian' : ethnicity} ${face.gender.value.toLowerCase()}. ${pronoun} appears to be ${emotion}, and is ${smile ? 'smiling' : 'not smiling'}. I give this face a ${Math.round(beautyScore)} on the 1-100 beauty scale. ${beautyScore > 50 ? beautyScore > 70 ? beautyScore > 90 ? 'Hot!' : 'Not bad.' : 'Not _too_ ugly.' : 'Uggggly!'} diff --git a/package.json b/package.json index 9a7b559a..b3f1fa3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "105.3.0", + "version": "105.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {